Closed ebuildy closed 10 months ago
Hi! I do not fully understand a need for such feature. Looking at the Doctrine documentation:
Every entity class must have an identifier/primary key
On the other side - I can see many potential issues with implementing such possibility - how to configure which field/fields should be used, what if the field is not unique.
So if other people do not see a need for such feature I guess implementing your own fallback constructor would do the job in your case and I guess would be the simplest solution.
Best, Marcin.
what about an event serializer.entity_reconciliation
?
Or the entity repository could implements an interface reconciliateEntity
that define a method reconciliateEntity(array $data)
Sounds a bit complicated and redundant. :) I do not see a lot of value in adding it right now - especially when it can be achieved with existing features.
Steps required to reproduce the problem
Given this JSON
Doctrine entity class:
When doing:
Expected Result
Actual Result
This could call the entity repository as fallback to find the Entity ?
Something like