[BUGFIX] Call initializeObject() after instantiating empty objects 14/39914/5
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 3 Jun 2015 09:38:22 +0000 (11:38 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 5 Jun 2015 07:38:49 +0000 (09:38 +0200)
commitec4f49f69fe8478e9c67ae56d9108a46fce9693e
tree38325c8c1f56da69d3576abf93b597c0b4c22b61
parent8edc2bef784d00b14b65e0518d841fdc00581a9f
[BUGFIX] Call initializeObject() after instantiating empty objects

If the object is initializable and has a callable initializeObject()
method run that so that initialization work will be done.

This affects model instances retrieved from the persistence.

Resolves: #67272
Resolves: #67274
Related: #66473
Releases: master, 6.2
Change-Id: I7b0278855270e8fa6ef75a424d339d072af29c54
Reviewed-on: http://review.typo3.org/39914
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/extbase/Classes/Object/Container/Container.php
typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/Testclasses.php