[TYPO3-mvc] How to access dataMapper in Repository
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Sep 7 11:29:26 CEST 2011
Hey,
> how can I access the dataMapper-Object in my Repository?
> I saw something like this in the Book of Sebastian and Jochen:
>
> $this->dataMapper->map($this->getType(), $row)
>
> But I can't call it from my Repository with $query->dataMapper.
well, the dataMapper property of the query object is protected, so you
can't access it from the outside.
> Any ideas
If you need the dataMapper in your repository, simply have it injected
and make use of it then :)
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list