[TYPO3-mvc] When extending queryFactory class, the object manager dont work
Stefan Kruse
besucher80 at gmx.de
Thu Jul 4 12:41:05 CEST 2013
Hi,
i have to extend the queryFactory class. This I do with:
class MyQueryFactory extends
\TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory {
.
}
When I now want to use the object manager which is instanciate in the
queryFactory with:
/**
* @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
* @return void
*/
public function
injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface
$objectManager) {
$this->objectManager = $objectManager;
}
Then I got null. The object manager is not present. How can I get access to
the parent object manager?
P.S.: I would thank all peoples who give me so much hints in the past. Great
mailing list. Thanks.
Cheers Stefan
More information about the TYPO3-project-typo3v4mvc
mailing list