mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-02 22:52:43 +02:00
commit
f04535d83d
@ -106,7 +106,7 @@ class EntityPopulator
|
||||
if ($mapping['targetEntity'] == $relatedClass) {
|
||||
if ($mapping['type'] == ClassMetadata::ONE_TO_ONE) {
|
||||
$unique = true;
|
||||
$optional = $mapping['joinColumns'][0]['nullable'];
|
||||
$optional = isset($mapping['joinColumns'][0]['nullable']) ? $mapping['joinColumns'][0]['nullable'] : false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user