Update working-with-associations.rst
This commit is contained in:
parent
eecf4382b0
commit
f3909ae885
@ -405,25 +405,11 @@ There are two approaches to handle this problem in your code:
|
|||||||
Transitive persistence / Cascade Operations
|
Transitive persistence / Cascade Operations
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
Persisting, removing, detaching, refreshing and merging individual entities can
|
When working with many associated entities, you sometimes don't want to "expose" all entities to your PHP application.
|
||||||
become pretty cumbersome, especially when a highly interweaved object graph
|
Therefore Doctrine 2 provides a mechanism for transitive persistence through cascading of certain operations.
|
||||||
is involved. Therefore Doctrine 2 provides a
|
Each association to another entity or a collection of
|
||||||
mechanism for transitive persistence through cascading of these
|
entities can be configured to automatically cascade the following operations to the associated entities:
|
||||||
operations. Each association to another entity or a collection of
|
``persist``, ``remove``, ``merge``, ``detach``, ``refresh`` or ``all``.
|
||||||
entities can be configured to automatically cascade certain
|
|
||||||
operations. By default, no operations are cascaded.
|
|
||||||
|
|
||||||
The following cascade options exist:
|
|
||||||
|
|
||||||
|
|
||||||
- persist : Cascades persist operations to the associated
|
|
||||||
entities.
|
|
||||||
- remove : Cascades remove operations to the associated entities.
|
|
||||||
- merge : Cascades merge operations to the associated entities.
|
|
||||||
- detach : Cascades detach operations to the associated entities.
|
|
||||||
- refresh : Cascades refresh operations to the associated entities.
|
|
||||||
- all : Cascades persist, remove, merge, refresh and detach operations to
|
|
||||||
associated entities.
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user