Symfony2: get the id of the persisted object Symfony2: get the id of the persisted object symfony symfony