[TASK] Deprecate AbstractDomainObject::__wakeup and document changes
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Breaking-67402-ExtbaseAbstractDomainObjectWakeUp.rst
1 ==========================================================
2 Breaking: #67402 - Extbase AbstractDomainObject __wakeup()
3 ==========================================================
4
5 Description
6 ===========
7
8 Method ``__wakeup()`` in classes extending ``TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject``
9 is no longer called if objects are created when fetched from persistence.
10
11
12 Affected Installations
13 ======================
14
15 An instance is affected if own domain objects extending AbstractDomainObject
16 implement own ``__wakeup()`` methods. Those methods are no longer called.
17
18
19 Migration
20 =========
21
22 Move initialization code from ``__wakeup()`` to ``initializeObject()``. As bonus, dependency
23 injection was executed at this time already.