-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Deprecate specifying nullable on primary key columns #12126
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
Conversation
It produces no effect.
232d618 to
d1d13d5
Compare
| bool $nullable = true, | ||
| bool $unique = false, | ||
| string|null $onDelete = null, | ||
| string|null $columnDef = null, |
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 feels bad to have to specify nullable for this method, but there is no way to widen the type without a breaking change.
| public function addJoinColumn( | ||
| string $columnName, | ||
| string $referencedColumnName, | ||
| bool $nullable = true, |
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.
This argument is useless, but I'm obliged to add it because of inheritance. I could have widened the type of the parent method, but that would be a breaking change. I wish some of these classes were internal, but marking them as internal now would be a breaking change I guess.
| unset($array['nullable']); | ||
|
|
||
| return $array; | ||
| }; |
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.
I had to do this change because association mapping overrides use it, and obtained a nullable property set to false.
…primary key columns (xabbuh) This PR was merged into the 6.4 branch. Discussion ---------- [DoctrineBridge] remove deprecated nullable option from primary key columns | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT see doctrine/orm#12126 Commits ------- 3f2d5d8 remove deprecated nullable option from primary key columns
It produces no effect.