[TYPO3-mvc] Best way to convert "tx_ext_domain_model_foo:1" into object?
Tim Schoch | GSTALTIG
tim.schoch at gstaltig.ch
Mon Mar 12 11:32:25 CET 2012
Hi Dennis
Instead of DI'ing it with an inject method I would have called it directly:
$this->objectManager->get( ' Tx_Extbase_Persistence_Manager' )->getObjectByIdentifier( ' tx_ext_domain_model_foo:1' );
I only need the Persistence Manager in one of my Actions and I don't want to pollute the RAM with mostly unnecessary stuff.
Anyway, I'll test this out tomorrow.
Gruess Tim
GSTALTIG GMBH / www.gstaltig.ch
Sonnenhofstr. 13 / 6020 Emmenbrücke
tim at gstaltig.ch / 076 488 24 97
More information about the TYPO3-project-typo3v4mvc
mailing list