_sequenceName = $sequenceName; } public function generate(EntityManager $em, $entity) { return $em->getConnection()->lastInsertId($this->_sequenceName); } /** * @return boolean * @override */ public function isPostInsertGenerator() { return true; } }