You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem:
I have Order and Product entities in doctrine (One Order has Many Products). I receive Order object from api (not Order entity) with Products inside (also not doctrine entity). And i want to update data in db.
For Order I can check it in DB, get and map changes on existing Order entity (I can pass existing entity as $destination).
And this creates new unmanaged entities. And I want to map data to existing products. Is it possible? Or mb you can give me a hint how it can be implemented.
The text was updated successfully, but these errors were encountered:
The problem:
I have Order and Product entities in doctrine (One Order has Many Products). I receive Order object from api (not Order entity) with Products inside (also not doctrine entity). And i want to update data in db.
For Order I can check it in DB, get and map changes on existing Order entity (I can pass existing entity as $destination).
But for products all I can do is just
And this creates new unmanaged entities. And I want to map data to existing products. Is it possible? Or mb you can give me a hint how it can be implemented.
The text was updated successfully, but these errors were encountered: