Skip to content

Commit 549f5b3

Browse files
committed
change to new command
1 parent 53a2b31 commit 549f5b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cookbook/doctrine/mongodb.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,11 @@ To do this, add the name of the repository class to your mapping definition.
514514
515515
</doctrine-mong-mapping>
516516
517-
Doctrine can generate the repository class for you by running the same command
518-
used earlier to generate the missing getter and setter methods:
517+
Doctrine can generate the repository class for you by running :
519518

520519
.. code-block:: bash
521520
522-
php app/console doctrine:mongodb:generate:documents AcmeStoreBundle
521+
php app/console doctrine:mongodb:generate:repositories AcmeStoreBundle
523522
524523
Next, add a new method - ``findAllOrderedByName()`` - to the newly generated
525524
repository class. This method will query for all of the ``Product`` documents,

0 commit comments

Comments
 (0)