sensio/SensioGeneratorBundle — pull request #118 by jcrombez (2012-03-15 17:33:11+00:00)
Title: Removed the "persist" call when updating an existing entity

I'm not a Doctrine expert but i think the EntityManager "persist" method is supposed to make an entity "managed", but if an entity "come" from the database (wich is the case here), then the entity is already managed, so there is no need to persist it again. Let me know if i misunderstood the documentation.