doctrine/doctrine2 — pull request #166 by beberlei (2011-10-22 11:45:57+00:00)
Title: DDC-720 - Add support to flush only one entity through EntityManager#flush()

Only flush the given entity according to a ruleset that keeps the UoW consistent.

1. All entities scheduled for insertion, (orphan) removals and changes in collections are processed as well!
2. Read Only entities are skipped.
3. Proxies are skipped.
4. Only if entity is properly managed.