[TYPO3-mvc] Repository returns empty array

Jochen Rau jochen.rau at typoplanet.de
Tue Dec 8 14:26:54 CET 2009


Hi Thomas.

schrieb Thomas "Thasmo" Deinhamer:
> Hello,
>
> my attempt:
> $this->projectRepository->findByPid(7);
>
> or this attempt:
> $this->projectRepository->findAll();
>
> return both an empty Array. The repository is
> defined in the directory 'Repository'. Everything's
> working (the template is beeing found an printed in
> the front end, thus the controller is beeing called,
> just the repository returns no objects).
>
> What I'm doing wrong? I'd like to debug this,
> e.g. see what Query Statement is beeing executed,
> but I can't find a way to do so.
>
> Does anybody have an idea?

Did you set the storagePage?

plugin.tx_blogexample.persistence.storagePid = 42

Do you already have Objects in your Repository? (resp. in the database)

Do you have a property "pid" in your Domain Model object? (The only 
property available by default is "uid".)

Regards
Jochen


-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list