do not choke on not existing mapping field
This commit is contained in:
parent
1c110fa1f7
commit
9a9134f4e4
@ -17,6 +17,8 @@ class BaseUser
|
|||||||
*/
|
*/
|
||||||
private $username;
|
private $username;
|
||||||
|
|
||||||
|
private $enabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseUser constructor.
|
* BaseUser constructor.
|
||||||
*
|
*
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
<mapped-superclass name="Symfony\Bridge\Doctrine\Tests\Fixtures\BaseUser">
|
<mapped-superclass name="Symfony\Bridge\Doctrine\Tests\Fixtures\BaseUser">
|
||||||
<field name="username" column="username" type="string" length="120" />
|
<field name="username" column="username" type="string" length="120" />
|
||||||
|
<field name="enabled" type="boolean" />
|
||||||
</mapped-superclass>
|
</mapped-superclass>
|
||||||
|
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
@ -72,7 +72,7 @@ final class DoctrineLoader implements LoaderInterface
|
|||||||
$metadata->addConstraint(new UniqueEntity(['fields' => $mapping['fieldName']]));
|
$metadata->addConstraint(new UniqueEntity(['fields' => $mapping['fieldName']]));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $mapping['length']) {
|
if (null === ($mapping['length'] ?? null)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user