Skip to content

Tag: one-to-many

Doctrine 2: Saving Entity in Complex Relationship

I have the following relationships within my doctrine entities: FavoriteRecipe Recipe User In one of my controllers I have the following code: But this throws an exception with the following message: A new entity was found through a relationship that was not configured to cascade persist operations: EntitiesU…