Comments (1)
If you look at src/Strategy/AllowRemoveByReference
, for instance, you should see that a diff between the two collections is build and the individual elements are indeed added or removed. So, technically, the collection is not rebuilt.
The comparison of objects is based on AbstractCollectionStrategy::compareObjects()
, which uses spl_object_hash(). Could it be that your objects in fact are not identical, but different instances of the same entity?
from doctrine-laminas-hydrator.
Related Issues (17)
- Hydrating uploaded image array to entity HOT 2
- Deprecation notices from doctrine\common HOT 1
- DoctrineObject extractByReference on uninitialized variables (PHP 7.4) HOT 3
- README documentation links to zend framework HOT 1
- Issue with unassigned members / PHP 7.4 (Typed property must not be accessed before initialization) HOT 2
- Wrong case of decimal and bigint HOT 2
- Problem with file uploads HOT 10
- Proof-reading of documentation HOT 2
- Removal of identifier values in toMany() function HOT 9
- Backed Enum Hydration ends up in a type conversion HOT 6
- Documentation issues and hydration apparently not working for Embeddable HOT 5
- Collection nested collection HOT 2
- Add support for time_immutable and date_immutable
- Problem with the compare function of the AbstractCollectionStrategy HOT 6
- Association extraction HOT 1
- hydrate composite PK 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 doctrine-laminas-hydrator.