Skip to content

change to new generate repository command #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cookbook/doctrine/mongodb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,11 @@ To do this, add the name of the repository class to your mapping definition.

</doctrine-mong-mapping>

Doctrine can generate the repository class for you by running the same command
used earlier to generate the missing getter and setter methods:
Doctrine can generate the repository class for you by running :

.. code-block:: bash

php app/console doctrine:mongodb:generate:documents AcmeStoreBundle
php app/console doctrine:mongodb:generate:repositories AcmeStoreBundle

Next, add a new method - ``findAllOrderedByName()`` - to the newly generated
repository class. This method will query for all of the ``Product`` documents,
Expand Down