[TYPO3-mvc] get repository in eID and respect mapping?

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Tue Feb 25 16:22:35 CET 2014


Hi Gerhard,

i think that the mapping is configured in TS. When using eID mechanism,
your TS mappings are not read. Just my two cents...

Cheers,
Till

On 02/25/2014 03:36 PM, Gerhard Mehsel wrote:
> Hello,
>
> TYPO3 6.1:
> I have an extbase model that ist mapped through Typoscript to a
> non-TYPO3-database-table. Everything works like exspected.
>
> But if I try to get the repository and a model instance, the
> typoscript mapping is not respected anymore.
>
>
>
>
> in eID script:
>
> // ------------------------
> $objectManger =
> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\Object\ObjectManager');
>
> $repository =
> $objectManger->get('vendor\extension\Domain\Repository\MyRepository');
>
> $tp = $repository->findByUid(8);
>
> // -------------------------
>
>
> $tp is now an instance of the extensions' default database table
> (which is wrong!) and not the mapped one.
>
> Did I miss something?
>
> Best regards,
> Gerd
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list