[TYPO3-german] Extbase: im Repsoitory auf zweites Repository zugreifen?
Andreas Freund
andfriend23 at gmail.com
Wed Jul 2 19:40:32 CEST 2014
Hallo Johannes,
wenn du noch keine Lösung für dein Problem gefunden hast hilft dir
sicher das hier weiter:
http://www.derhansen.de/2012/06/zugriff-auf-frontend-user-tabelle-aus.html
Gruß,
Andi
On 24.06.2014 15:07, Johannes C. Schulz - EnzephaloN IT-Solutions wrote:
> Hallo typo3-Freunde
>
>
>
> Ich habe gerade ein Problem, daß ich in meinem aRepository nicht auf ein
> bRepository zugreifen kann:
>
> class ARepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
>
> /**
>
> * userRepository
>
> *
>
> * @var
> \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository
>
> * @inject
>
> */
>
> protected $userRepository = NULL;
>
>
>
> public function irgendwas($name){
>
>
> $this->userRepository->countByUsername($name);
>
> }
>
> }
>
>
>
> Dies wirft den Fehler “called countByUsername on non-object”.
>
>
>
> Wie muß ich das richtig machen???
>
>
>
> Danke
>
> Johannes
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list