[TYPO3-mvc] attach on non-object error

Alexander Schnitzler mail at alexanderschnitzler.de
Mon Mar 5 09:29:17 CET 2012


Could you provide a little bit more code and explain in a few more 
sentences what you want to do?

Anyway, this does not look like a clean solution at all. Especially the 
findByUid-calls in the foreach loop. That's not good practise and will 
slow down your application. Better use something like $query->in() or 
$query->contains() and just have one db-request.


More information about the TYPO3-project-typo3v4mvc mailing list