Skip to content

Commit bfe3f45

Browse files
committed
properties use attributes for mapping
1 parent 9f1d07f commit bfe3f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
190190

191191
This class is called an "entity". And soon, you'll be able to save and query Product
192192
objects to a ``product`` table in your database. Each property in the ``Product``
193-
entity can be mapped to a column in that table. This is usually done with annotations:
194-
the ``@ORM\...`` comments that you see above each property:
193+
entity can be mapped to a column in that table. This is usually done with attributes:
194+
the ``#[ORM\Column(...)]`` comments that you see above each property:
195195

196196
.. image:: /_images/doctrine/mapping_single_entity.png
197197
:align: center

0 commit comments

Comments
 (0)