-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove column platform option getters #6975
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,9 +127,20 @@ | |
|
|
||
| public function hasPlatformOptionsChanged(): bool | ||
| { | ||
| return $this->hasPropertyChanged(static function (Column $column): array { | ||
| return $column->getPlatformOptions(); | ||
| }); | ||
| foreach ( | ||
| [ | ||
| static fn (Column $column): ?string => $column->getCharset(), | ||
| static fn (Column $column): ?string => $column->getCollation(), | ||
| static fn (Column $column): mixed => $column->getMinimumValue(), | ||
| static fn (Column $column): mixed => $column->getMaximumValue(), | ||
| ] as $property | ||
|
Comment on lines
+131
to
+136
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since more property exists in the PlatformOptions, like, at least, enumType this doesn't give the same behavior (cf #7238) Before when changing the enumType this method returned true ; now it returns false. (and maybe there are others important platform options) Not sure of the impact |
||
| ) { | ||
| if ($this->hasPropertyChanged($property)) { | ||
| return true; | ||
| } | ||
| } | ||
|
|
||
| return false; | ||
| } | ||
|
|
||
| private function hasPropertyChanged(callable $property): bool | ||
|
|
||
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.
Currently
and
modifyColumnare not equivalent, because it loosing all the extra platform options not handled in the ColumnEditor, like enumType (cf #7238)