Registering a managed entity with an empty identifier is to be disallowed
This commit is contained in:
parent
7544934158
commit
0d82128b2e
@ -419,6 +419,13 @@ class UnitOfWorkTest extends OrmTestCase
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRegisteringAManagedInstanceRequiresANonEmptyIdentifier()
|
||||||
|
{
|
||||||
|
$this->expectException(ORMInvalidArgumentException::class);
|
||||||
|
|
||||||
|
$this->_unitOfWork->registerManaged(new EntityWithBooleanIdentifier(), [], []);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider entitiesWithInvalidIdentifiersProvider
|
* @dataProvider entitiesWithInvalidIdentifiersProvider
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user