Feature #29038

Feature #28486: Don't clone, use explicit change tracking instead

Set useful defaults for cascade attributes in Doctrine

Added by Karsten Dambekalns almost 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-08-17
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Persistence
Target version:TYPO3 Flow Base Distribution - 1.0 beta 1
PHP Version: Complexity:
Has patch:

Description

Use DDD semantics to add cascade attributes all INSIDE aggregate boundaries, NO cascading to other aggregate roots. Manually added cascade wins over automagic, of course.


Related issues

blocks TYPO3.Flow - Task #29039: Change default policy for Doctrine to DEFERRED_EXPLICIT Resolved 2011-08-17
blocked by TYPO3.Flow - Feature #29037: Use annotation to mark entities as aggregate root Rejected 2011-08-17

Associated revisions

Revision ac0d745f
Added by Karsten Dambekalns almost 4 years ago

[FEATURE] Set useful defaults for cascade attributes in Doctrine

Our metadata driver now adds cascade all to all relations not pointing
to an aggregate root, orphanRemoval is also turned on where applicable.

You can thus remove cascade attributes unless you want to override the
automagic explicitly.

Change-Id: I0708a87fbc28527afb4414e731c2373b39ad7078
Resolves: #29038
Related: #28486

History

#1 Updated by Mr. Hudson almost 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#2 Updated by Mr. Hudson almost 4 years ago

Patch set 2 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#3 Updated by Mr. Hudson almost 4 years ago

Patch set 3 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#4 Updated by Mr. Hudson almost 4 years ago

Patch set 4 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#5 Updated by Mr. Hudson almost 4 years ago

Patch set 5 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#6 Updated by Mr. Hudson almost 4 years ago

Patch set 6 of change I0708a87fbc28527afb4414e731c2373b39ad7078 has been pushed to the review server.
It is available at http://review.typo3.org/4469

#7 Updated by Karsten Dambekalns almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF