[TYPO3-english] initStorageObjects()
Jan Kornblum
jan.kornblum at gmx.de
Sat May 30 19:18:51 CEST 2015
Dear newsgroups,
can anybody please explain to me what "initStorageObjects()" is needed
for in a model class?
protected function initStorageObjects() {
$this->images = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
}
Any extensions i've written don't really need this. The following seems
to be enough to get the objectstorages work correctly:
/**
* images
*
* @var
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
*/
protected $images = NULL;
Am i wrong with this?
Kind regards, Jan
More information about the TYPO3-english
mailing list