[TYPO3-mvc] Repository returns empty array

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Tue Dec 8 14:40:38 CET 2009


K, thanks a lot for your advices,
I added the storagePid in typoscript,
which was missing.

I now also tried to use 'Startingpoint'
inside the plugin content element, which
seems to also do the job, right?

Again, thanks a lot!

Thomas


Jochen Rau schrieb:
> 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
> 
> 


More information about the TYPO3-project-typo3v4mvc mailing list