[TYPO3-mvc] associations
Christoph Koehler
christoph.koehler at gmail.com
Tue Aug 18 06:19:46 CEST 2009
Hello,
Does extbase handle associations as follows?
user has_many posts
post belongs_to user
All that I have in the database would be a user_id field in the post
table; no changes to user required.
Now I would like to do this from a post to find other posts from the
same user:
$userposts = $post->user->posts();
Could those methods be added to my models automatically, kind of like in
Rails with has_many and belongs_to?
Thanks!
Christoph
More information about the TYPO3-project-typo3v4mvc
mailing list