1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-02 22:52:43 +02:00

Merge pull request #243 from dbojdo/patch-1

Update EntityPopulator.php
This commit is contained in:
Francois Zaninotto 2014-01-30 00:11:06 -08:00
commit f04535d83d

View File

@ -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;
}
}