-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract mappings to their own DTOs #10405
Closed
Closed
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
bec62b1
Extract FieldMapping in its own DTO
greg0ire c354e5d
Extract AssociationMapping in its own DTO
greg0ire d53101c
Extract discriminator column mapping into its own DTO
greg0ire 454e0e0
Extract embedded class mapping into its own DTO
greg0ire f28d99a
Separate classes
greg0ire 1286aa3
leverage To*AssociationMapping classes
greg0ire 1229508
Introduce abstractions for owning side
greg0ire e208f30
Introduce AssociationMapping::isToOne()
greg0ire 49ad40f
Remove redundant AssociationMapping::$type
greg0ire ef8d196
Make abstract classes that should be
greg0ire 1290b20
Move joinColumns to where they belong
greg0ire b5bf1cb
Use psalm-param to fix cs issue
greg0ire 4795e65
Use more precise/accurate docblocks
greg0ire 895ce27
Move validation logic to dtos
greg0ire aeed003
Extract array access implementation into a trait
greg0ire 1fadc99
switch to static
greg0ire 1c869f2
Remove unused baseline entries
greg0ire 3c6835c
Baseline remaining issues
greg0ire 720aa4b
Make readonly properties that can be
greg0ire f8942cd
Finalize methods that can be finalized
greg0ire bdd1647
Rename JoinColumnData to JoinColumnMapping
greg0ire 7ba408b
Remove unused constructor
greg0ire e66961d
Use null coalesce assignment operator
greg0ire b5d2ff2
Document properties as nullable
greg0ire f667d13
Default orphan removal to false
greg0ire a883fbe
Avoid array access in new files
greg0ire 3ba09ea
Avoid array access trait when overridden
greg0ire 1684548
Remove nullability for join columns
greg0ire 35d7b4b
Serialize only what's necessary
greg0ire abc5625
Stop synchronizing properties
greg0ire 40d46df
Narrow type down
greg0ire fb38580
Remove reference access
greg0ire 2924f75
Make referencedColumnName mandatory
greg0ire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If those are all
AssociationMapping
, wouldn't the use of a method be an option instead of aninstanceof
check? You've used methods at other places too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I will add such a method.