[TYPO3-mvc] Attributes on irre-relations possible?
Andreas Kießling
andreas.kiessling at web.de
Mon Mar 22 09:26:07 CET 2010
Am 21.03.10 20:12, schrieb Martin Kutschker:
> Andreas Kießling schrieb:
>> Or is there some other way / best-practice to fetch that data?
>
> Wrong question in the DDD world. Think in objects not data :)
Yeah, you're right... Shame on me ;)
>
> Anyway to answer your question: in my test/demo extension I have objects for the "relation" table.
> The "parent" object has a property which holds these objects. They in turn have a property which
> holds the "child" objects. If you don't declare these properties as @lazy ExtBase will load them all
> at once.
Youre ballroom_dancing is already in my list of "have a look at how it's
done there"-extensions ;) You're referring to your additions to the
persistence layer?
Unfortunately, i get some strange errors upon installing (using current
4.4 SVN and extbase/fluid SVN):
- Some tables can't be created / updated from extension manager
- when viewing a list of dances or figures:
Fatal error: Call to undefined method
Tx_Extbase_Persistence_Mapper_DataMapper::injectPersistenceManager() in
/Applications/XAMPP/xamppfiles/htdocs/typo3/typo3conf/ext/ballroom_dancing/Classes/Persistence/TcaSelectItemFactory.php
on line 42
- when viewing list of recordings:
#1251315966: Could not determine the type of the contained objects.
Tx_Extbase_Persistence_Exception_UnexpectedTypeException thrown in file
/Applications/XAMPP/xamppfiles/htdocs/typo3/typo3conf/ext/extbase/Classes/Persistence/Mapper/DataMapper.php
in line 521.
I will try to fix those and adopt your solution to my extension.
Thanks for the hint!
(Don't bother the file path: I've checked out extbase separetely, since
i get some strange SVN messages when updateing core with the reference
to the external extbase-repository)
Greets,
Andreas
More information about the TYPO3-project-typo3v4mvc
mailing list