Task #29039

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

Change default policy for Doctrine to DEFERRED_EXPLICIT

Added by Karsten Dambekalns about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Persistence
Start date:
2011-08-17
Due date:
% Done:

100%

Estimated time:
Sprint:
PHP Version:
Has patch:
Complexity:

Description

  • change tracking policy -> explicit
  • no more clone PersistentObjectConverter
  • Repository adjustments
    • add($obj) -> throw exception when object is not new
    • remove($obj) -> throw exception when object is not known in persistence BE
    • update($obj) -> throw exception when object is not known in persistence BE, call PersistenceBackend::persist()

Biggest change: without update() call no changes will be persisted, no more automatic persistence.


Related issues

Has duplicate TYPO3.Flow - Feature #28137: Do not use clone in PersistentObject ParamConverterClosedKarsten Dambekalns2011-07-132011-07-13

Actions
Blocks TYPO3.Flow - Task #29040: Adjust documentation to new persistence behaviorResolvedKarsten Dambekalns2011-08-17

Actions
Blocked by TYPO3.Flow - Feature #29038: Set useful defaults for cascade attributes in DoctrineResolvedKarsten Dambekalns2011-08-17

Actions
#1

Updated by Mr. Hudson about 10 years ago

  • Status changed from Accepted to Under Review

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

#2

Updated by Mr. Hudson about 10 years ago

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

#3

Updated by Mr. Hudson about 10 years ago

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

#4

Updated by Mr. Hudson about 10 years ago

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

#5

Updated by Karsten Dambekalns about 10 years ago

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

Also available in: Atom PDF