[TYPO3-mvc] Definitive state of MM-relational-queries in Extbase
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Apr 14 09:04:09 CEST 2010
Hey,
> erm, normally one post belongs to just one blog and not to many. So this
> is not m:m relation but 1:n. Just skip all this mm_table stuff, give
> your post table a select (maxitems=1) field and your post model a post
> property annotated Tx_YourExt_Domain_Model_Blog (NOT ObjectStorage).
> Extbase will map the related blog object into your post model and you
> cann access it via {post.blog.title} in fluid.
good catch. Of course the TCA of the "entries" field of the blog also
must be changed to reflect this. So also drop the MM table relation here
and use foreign_field (IRRE) etc.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list