File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/Symfony/Bridge/Doctrine Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ private static function getRealClass(string $class): string
208
208
private static function getMappingValue ($ mapping , string $ key )
209
209
{
210
210
if ($ mapping instanceof JoinColumnMapping) {
211
- return $ mapping ->$ key ;
211
+ return $ mapping ->$ key ?? null ;
212
212
}
213
213
214
214
return $ mapping [$ key ] ?? null ;
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ private function getPhpType(string $doctrineType): ?string
314
314
private static function getMappingValue ($ mapping , string $ key )
315
315
{
316
316
if ($ mapping instanceof AssociationMapping || $ mapping instanceof EmbeddedClassMapping || $ mapping instanceof FieldMapping || $ mapping instanceof JoinColumnMapping) {
317
- return $ mapping ->$ key ;
317
+ return $ mapping ->$ key ?? null ;
318
318
}
319
319
320
320
return $ mapping [$ key ] ?? null ;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ private function getExistingUniqueFields(ClassMetadata $metadata): array
148
148
private static function getFieldMappingValue ($ mapping , string $ key )
149
149
{
150
150
if ($ mapping instanceof FieldMapping) {
151
- return $ mapping ->$ key ;
151
+ return $ mapping ->$ key ?? null ;
152
152
}
153
153
154
154
return $ mapping [$ key ] ?? null ;
You can’t perform that action at this time.
0 commit comments