Skip to content

Commit 41d1356

Browse files
gajdawweaverryan
authored andcommitted
BOOK: note about generating set/get, constructor & repository class
1 parent c470274 commit 41d1356

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

book/doctrine.rst

+11
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,17 @@ for the ``Product`` class. This is a safe command - you can run it over and
283283
over again: it only generates getters and setters that don't exist (i.e. it
284284
doesn't replace your existing methods).
285285

286+
.. note::
287+
288+
Using ``doctrine:generate:entities`` command you can:
289+
290+
* generate getters and setters,
291+
292+
* generate repository classes configured with
293+
``@ORM\Entity(repositoryClass="...")`` annotation,
294+
295+
* generate appropriate constructor for 1:n and n:m relations.
296+
286297
.. caution::
287298

288299
The ``doctrine:generate:entities`` command saves a backup of the original

0 commit comments

Comments
 (0)