Git Product home page Git Product logo

Comments (4)

l3pp4rd avatar l3pp4rd commented on May 28, 2024

Solved the case for childCount. but it affects a lot of places. children, getPath functions are also producing unexpected results in such cases on inheritance mapping. This one is tricky and it would require more time to solve it correctly. So be careful on this usage. I will leave this issue open. Thanks for notice on that issue.

from doctrineextensions.

julesbou avatar julesbou commented on May 28, 2024

NOTE:
i have found a workaround for this:

  1. remove the abstract keyword from BaseNode class
  2. call $em->getRepository('BaseNode'); instead of $em->getRepository('NodeType1');

this should do the trick.

from doctrineextensions.

l3pp4rd avatar l3pp4rd commented on May 28, 2024

for example, if children function returns all nodes, and they are instances not only of BaseNode but also includes NodeType1, when it is OK to fix it in that way. In other case I will think something about using doctrine persistent collection for loading the list correctly.

from doctrineextensions.

l3pp4rd avatar l3pp4rd commented on May 28, 2024

fixed this together with optimizations related to changes in new release. branch is named "pending-inserts". It is also merged into master since doctrine2 now is a stable release

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.