[TYPO3-mvc] Best way to convert "tx_ext_domain_model_foo:1" into object?

Dennis Ahrens dennis.ahrens at googlemail.com
Mon Mar 12 10:41:15 CET 2012


Hi,

On 10.03.2012 10:59, Tim Schoch | GSTALTIG wrote:
> Tx_Extbase_Dispatcher::getPersistenceManager() was the missing piece! I knew about the getObjectByIdentifier() method inside
> Tx_Extbase_Persistence_Storage_Typo3DbBackend but didn't want to call it directly. Thanks

The dispatcher is deprecated since extbase 1.3. If you work with at 
least extbase 1.3 you should change the way you access the 
PersistenceManager - use dependency injection instead.

Have a look at the breaking changes wiki site [1] to get an overview. 
The wiki pages [2] and [3], that were linked there, should help you.

regards
Dennis

[1] http://forge.typo3.org/projects/typo3v4-mvc/wiki/Breaking_Changes
[2] http://forge.typo3.org/projects/typo3v4-mvc/wiki/Dispatcher_Refactoring
[3] 
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Dependency_Injection_(DI)


More information about the TYPO3-project-typo3v4mvc mailing list