Git Product home page Git Product logo

Comments (5)

l3pp4rd avatar l3pp4rd commented on May 24, 2024

Hi, can you provide a test case? in unit tests, now I'm not sure if I understand how it is relevant to many-to-many, test case would really save a lot of time, I'll check this in a day, thanks for reporting that.

from doctrineextensions.

l3pp4rd avatar l3pp4rd commented on May 24, 2024

Check this commit, I do not see any problem for manytomany relation, its probably something wrong in your code, somehow you persist your related entity as new. I'm not sure but try to set EAGER_FETCH on your relation, maybe its proxy issue.. Or provide a test case

from doctrineextensions.

pvanliefland avatar pvanliefland commented on May 24, 2024

Hello, thanks a lot for the impressively quick feedback on this. Your test runs ok, but the process that causes the error is slightly different in our application. How do you want me to provide the test case ?

from doctrineextensions.

stof avatar stof commented on May 24, 2024

Add a test in the testsuite and do a pull request

from doctrineextensions.

l3pp4rd avatar l3pp4rd commented on May 24, 2024

I added some comments in the same test case and fixture, related to this issue. In general, the problem was that collections are not treated like arrays, and you simply duplicated the objects because of that. Read more in doctrine docs about collections and how to handle them

from doctrineextensions.

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.