[TYPO3-mvc] Related objects inheriting from parent object default query settings
François Suter
fsu-lists at cobweb.ch
Wed Dec 21 10:31:04 CET 2011
Hi Claus,
Thanks for your answer.
> To my knowledge there is no reason why the Repository should not be instantiated in order to get default QuerySettings. It seems to make sense. I would be happy to take a look at that patch. If all goes well I'll have a look tonight:)
Thanks
> To explain the error you are getting with ObjectManager:
>
> Non-prototype instances are fetched using ObjectManager->get($className), so use that instead and it should work.
Indeed, it works with:
$repository = $this->objectManager->get($repositoryClassName);
but I must admit I don't understand what a prototype object is in the
scope of Extbase (I know about prototype-based languages like JS). Could
you explain?
Chers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-typo3v4mvc
mailing list