I am reading wiki.
I am a bit confused with this:
https://doctrine-orm.readthedocs.org/en/latest/reference/working-with-objects.html#removing-entities
My Client entity is OneToMany to Orders entities. If in Client class with
mapping metadata to Order I use ('onDelete' => 'CASCADE'), when I add a
client all its orders will be removed when I run flush()? Or vice versa I
have to put it in Order class with mapping to Client? or it works with
ManyToMany mapping?

-- 
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/groups/opt_out.

Reply via email to