commit
b8ef6cfd2f
@ -50,8 +50,7 @@ class IdentityGenerator extends AbstractIdGenerator
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function generate(
|
public function generate(EntityManager $em, $entity)
|
||||||
EntityManager $em, $entity)
|
|
||||||
{
|
{
|
||||||
return (int)$em->getConnection()->lastInsertId($this->sequenceName);
|
return (int)$em->getConnection()->lastInsertId($this->sequenceName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user