Skip to content

Commit

Permalink
Merge pull request #444: [Core] Persist Attached/EmbeddedLeaf items o…
Browse files Browse the repository at this point in the history
…n cascade.

* pr-444:
  Abstract leaves persisted by cascade.
  • Loading branch information
TiSiE committed Nov 24, 2017
2 parents 110a855 + c1e5f59 commit 9d68c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Core/src/Core/Entity/Tree/AbstractLeafs.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractLeafs implements LeafsInterface
/**
* The leafs.
*
* @ODM\ReferenceMany(discriminatorField="_entity", storeAs="dbRef", strategy="set", sort={"priority"="asc"})
* @ODM\ReferenceMany(discriminatorField="_entity", storeAs="dbRef", strategy="set", sort={"priority"="asc"}, cascade={"persist"})
* @var Collection
*/
private $items;
Expand Down

0 comments on commit 9d68c1f

Please sign in to comment.