1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Merge pull request #1566 from BenMorel/typofix

Fix typos in DQL doc
This commit is contained in:
Marco Pivetta 2015-11-23 14:27:26 +01:00
commit b980e98ba3

View File

@ -486,9 +486,9 @@ You use the partial syntax when joining as well:
Using the ``NEW`` operator you can construct Data Transfer Objects (DTOs) directly from DQL queries.
- When using ``SELECT NEW`` you don't need to specify a mapped entity.
- You can specify any PHP class, it's only require that the constructor of this class matches the ``NEW`` statement.
- You can specify any PHP class, it only requires that the constructor of this class matches the ``NEW`` statement.
- This approach involves determining exactly which columns you really need,
and instantiating data-transfer object that containing a constructor with those arguments.
and instantiating a data-transfer object that contains a constructor with those arguments.
If you want to select data-transfer objects you should create a class: