Comments (5)
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.
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.
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.
Add a test in the testsuite and do a pull request
from doctrineextensions.
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)
- [Tests] Support running ORM tests with any DBAL backend
- Clock Mocking doesn't work from v3.12.0 HOT 3
- [Tree] lft, lvl, rgt always set to zero in an entity using Ulid as primary key. HOT 5
- [Translatable][Translator] unify alias usage of doctrine ORM mapping in entities
- Doctrine subscriber is deprecated HOT 9
- Conflict incompatible version 2.16.2 of doctrine/orm HOT 1
- ORM 3.0 compat HOT 11
- [Tree] persistAsNextSiblingOf removes node from tree
- Add ascii_string to allowed type for @Gedmo\Blameable
- Timestampable is not working with embeddables
- symfony 7 compatibility HOT 2
- Translatable: Field name length exceeds field length in translations table when using Embeddable
- Entity with TimestampableEntity trait fails on PUT operation HOT 6
- [Loggable] restore data without flush HOT 1
- Timestampable not working in 2.17 HOT 2
- [Timestampable] symfony/clock integration
- [Timestampable] symfony/clock integration
- SoftDeleteable is ignored and delete records hardly HOT 3
- [Loggable] Incomplete documentation on how to use custom LogEntry entity HOT 1
- Timestampable (and maybe more extensions) don't work with DBAL 4.0.0-RC2 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrineextensions.