#6499 #6533 simplifying nullable column check - null coalesce operator makes it *SOMEWHAT* more readable (no miracles)
This commit is contained in:
parent
166c5816b6
commit
1ede3c514f
@ -1154,7 +1154,11 @@ class UnitOfWork implements PropertyChangedListener
|
||||
|
||||
$joinColumns = reset($assoc['joinColumns']);
|
||||
|
||||
$calc->addDependency($targetClass->name, $class->name, (int) ! ( ! isset($joinColumns['nullable']) || $joinColumns['nullable'] === true));
|
||||
$calc->addDependency(
|
||||
$targetClass->name,
|
||||
$class->name,
|
||||
(int) (($joinColumns['nullable'] ?? true) === false)
|
||||
);
|
||||
|
||||
// If the target class has mapped subclasses, these share the same dependency.
|
||||
if ( ! $targetClass->subClasses) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user