Symfony2 Doctrine force entity ID on persist

http://dev.dbl-a.com/symfony-2-0/symfony2-doctrine-force-entity-id-on-persist/