[TYPO3-mvc] creating/deleting mm-realations between existing entities in front end?

Uwe Michelfelder um at limeflavour.com
Mon Feb 15 19:06:36 CET 2010


Hello all,

we encounter problems while trying to create a MM-relation between
existing entities.

We already have GROUPS and MEMBERS which can join or leave groups.
Both entities do already exist, so the members don't come along while
creating/editing the group entity via a form.

What we do is, that we trigger the joinAction with a link which provides
the current selected group object. In the controler action the current
fe-user is selected.

We now have both objects "group" and "member".

According to the blog_example -> adding tags to the post, it would go
like this:
The group model knows has the "addMember" method including the
attach-Method on $members (initialized in the constructor).

The difference to our code is, that tags are only addable through the
Typo3 backend.

Is there no way to create MM-relations in the front end controller?


Greetings,
Uwe


More information about the TYPO3-project-typo3v4mvc mailing list