In short: You cannot add additional properties to a many-to-many association. You'll need to create a one-to-many/many-to-one association.
See: http://stackoverflow.com/a/18655514/1237411 -- Jasper N. Brouwer (@jaspernbrouwer) On 8 May 2014 at 14:08:35, Sjoerd Huyg ([email protected]) wrote: > I am using some many-to-many joins which are conditional. Exactly what is > described at this questions at stackoverflow. > For simplicity reasons I will stick with the case as described on > stackoverflow. > > There are two tables: Accounts and Company. The two tables are joined with > the table account_company which does have and primary key on the fields > account_id and company_id. The table account_company also has the field > 'is_deleted'. > > Suppose I want to search for all old accounts (is_deleted=1). Is there any > method to do this without an AccountCompany entity? -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
