[TYPO3-mvc] Related objects inheriting from parent object default query settings
Peter Niederlag
typo3-list at niekom.de
Wed Dec 21 11:07:33 CET 2011
Hello,
Am 21.12.2011 10:31, schrieb François Suter:
> Hi Claus,
[..]
> $repository = $this->objectManager->get($repositoryClassName);
use get() for "singleton" (not "prototype");
use create() fro "prototype" (not "singelton");
> 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?
IMO it is just either prototype or singleton, Create() a new Instance
Get() the instance ("create" if not already existant) .
[...]
Greets and hth,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
More information about the TYPO3-project-typo3v4mvc
mailing list