A new entity was found through the relationship #11348
Unanswered
vitoff34
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build Cart functionality. These are my entities
Order:
OrderItem:
Product:
This is my CartService:
Whenever I delete an item from the cart using removeItem I am unable to add it again to the cart. I get this error:
A new entity was found through the relationship 'App\Entity\Order#user' that was not configured to cascade persist operations for entity
However I do not understand what new entity I am trying to create? Can anyone explain to me the issue?
Beta Was this translation helpful? Give feedback.
All reactions