We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a620b32 commit 6c89cc2Copy full SHA for 6c89cc2
EntityGeneratorBundle/Doctrine/Mapping/Manipulator/GetFields.php
@@ -42,7 +42,11 @@ public function execute(): array
42
);
43
}
44
45
- foreach ($mappedSuperClass->{'unique-constraints'}->{'unique-constraint'} as $constraint) {
+ $uniqueConstraints = $mappedSuperClass
46
+ ->{'unique-constraints'}
47
+ ?->{'unique-constraint'};
48
+
49
+ foreach (($uniqueConstraints ?? []) as $constraint) {
50
$currentFields[] = new RequestedProperty(
51
$constraint->attributes()['name'],
52
'unique_constraint'
0 commit comments