[TYPO3-mvc] Strange warning "You should never see it"

Dennis Ahrens dennis.ahrens at googlemail.com
Wed Jan 19 12:05:30 CET 2011


Hi Dawid,

Dawid Pacholczyk wrote:
> Hi guys,
>  I have some sick problems.
> 
> I`ve just created simple extbase based extension. I`ve created 2 tables 
> - connected tham m:n
> 
> I didn`t change nothing in code. I mean atm I`m working with files 100% 
> generated by extbase_kickstarter
> 
> I get nothing in my listAction
> 
> when I used var_dump($records) I receive
> 
> object(Tx_Extbase_Persistence_QueryResult)[112]
>   private 'warning' => string 'You should never see this warning. If you 
> do, you probably used PHP array functions like current() on the 
> Tx_Extbase_Persistence_QueryResult. To retrieve the first result, you 
> can use the getFirst() method.' (length=206)
>   protected 'dataMapper' =>
>     object(Tx_Extbase_Persistence_Mapper_DataMapper)[45]
>       protected 'identityMap' =>
>         object(Tx_Extbase_Persistence_IdentityMap)[47]
>           protected 'objectMap' =>
>             object(Tx_Extbase_Persistence_ObjectStorage)[48]
>               ...
>           protected 'uuidMap' =>
>             array


looks as if the code generated by the kickstarter expects repository 
methods to return an array instead of the new 
Tx_Extbase_Persistence_QueryResult.

regards
dennis


More information about the TYPO3-project-typo3v4mvc mailing list