[Tree] Fix TreeObjectHydrator compatibility with ORM 3#3041
Open
PhilDaiguille wants to merge 1 commit intodoctrine-extensions:mainfrom
Open
[Tree] Fix TreeObjectHydrator compatibility with ORM 3#3041PhilDaiguille wants to merge 1 commit intodoctrine-extensions:mainfrom
PhilDaiguille wants to merge 1 commit intodoctrine-extensions:mainfrom
Conversation
c437c35 to
4a559b0
Compare
4a559b0 to
0e61da2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello ! Fix bug in issue : #2921
This pull request fixes a compatibility issue in the
TreeObjectHydratorwith ORM 3 when the parent property is defined before the children property in an entity. It also adds a new test fixture and test case to ensure this scenario is properly handled.Bug fix for ORM 3 compatibility:
TreeObjectHydratorto correctly handle association mappings whether they are arrays or objects, ensuring the hydrator works when the parent property is defined before the children property in tree entities.TreeObjectHydratorcompatibility with ORM 3.Testing improvements:
RootCategoryReversedwith the parent property defined before children, to test the fixed scenario.RootCategoryReversedin the test suite and added a test casetestFullTreeHydrationWithReversedFieldOrderto verify correct tree hydration when field order is reversed. [1] [2] [3]