[FLOW3-general] Two questions for many-to-many associations
"Christian Müller (FLOW3 Team)"
christian.mueller at typo3.org
Mon Aug 13 21:18:04 CEST 2012
Hi Indira,
yes indeed just create a new model for your relation, the owning and
inverse side are defined by you so it is totally up to your domain model
on which side it makes most sense (probably the side you are accessing
from the most). Also for the second question you should create a model
and then the reposistory. There is no repository without a model.
Best,
Christian
On 13/08/12 20:36, indira wrote:
> Hi everyone,
>
> I have a many-to-many association between two entities, but I need some
> extra attributes on that association.
> I found this link
> https://groups.google.com/forum/?fromgroups#!topic/doctrine-user/0dh8lgUudvc%5B1-25%5D where
> they recommend to have a third entity for the relation itself, and then add
> the extra attributes there. My first question is: if I do this which one is
> the owning and inverse side?
>
> Also, I will need another table to track some information. On that table I
> will have three different entities related with some extra columns, so my
> second question is: can I just create a repository for this one without any
> model? What would be the best way to do it?
>
> Thanks in advance,
> Indira.
More information about the FLOW3-general
mailing list