Giter VIP home page Giter VIP logo

Comments (3)

scyzoryck avatar scyzoryck commented on August 15, 2024

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.

from serializer.

ebuildy avatar ebuildy commented on August 15, 2024

what about an event serializer.entity_reconciliation ?

Or the entity repository could implements an interface reconciliateEntity that define a method reconciliateEntity(array $data)

from serializer.

scyzoryck avatar scyzoryck commented on August 15, 2024

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.

from serializer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.