My entity uses this annotation for it\'s ID:
/** * @orm:Id * @orm:Column(type=\"integer\") * @orm:GeneratedValue(s
Perhaps what doctrine changed but now right way is:
$metadata->setIdGeneratorType(\Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_NONE);