[TYPO3-mvc] relations with metadata

Pascal Jungblut mail at pascal-jungblut.com
Thu Jun 3 19:27:27 CEST 2010


Hi Franz,

>> I'm currently working on tx_community for the Google Summer of Code and, starting with profiles, I have a question about relations. In particular it's about the friendship (yes, that's the common term in social networks) between users.
>> When one user wants to add another user as a friend, the other one gets notified and has to confirm the friendship. My question is how to technically implement those relations. Ingo and I have had several ideas:
> 
> I'd say I'd use a intermediate object called 'friend' or 'friendship'.

<snip>
> 
> Something like that I think. As you will always need a intermediate table, simply make it a intermediate object and use it to also store meta data. You won't get a direct relation between the two persons - there's always a friendship/relation inbetween.

thank you very much. You're absolutely right: as the friendship does have additional information, it must be an own object. I will implement it as a "friendship" object as you suggested. Again, thanks a lot.

Regards
Pascal


More information about the TYPO3-project-typo3v4mvc mailing list