1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00

Update working-with-associations.rst

This commit is contained in:
Thomas Landauer 2016-12-14 21:46:18 +01:00 committed by GitHub
parent 29062fb42e
commit 879d4e7df0

View file

@ -500,7 +500,8 @@ and the "remove" operation.
//...
}
Now you can persist the `User` entity like that:
Since ``cascade: persist`` is configured for the ``User#commentsAuthored``
association, you can now create a user and persist his comment as follows:
.. code-block:: php