Skip to content

Commit

Permalink
Add generate part for entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Mar 23, 2015
1 parent b2dd8d4 commit 37411ae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ the doctrine generator.

.. code-block:: bash
php app/console doctrine:generate:entity
$ php app/console doctrine:generate:entity
Fill in all the field you need.

Expand Down Expand Up @@ -74,3 +74,12 @@ Add the following code to your xml definition.
<join-column name="node_id" referenced-column-name="id" />
</many-to-one>
Generate
~~~~~~~~

Now your entity is ready to generate a table. Do so by calling the following command.

.. code-block:: bash
$ php app/console doctrine:schema:update [--force]

0 comments on commit 37411ae

Please sign in to comment.