Doctrine 2 - ORM

State change detection for version incrementation (for optimistic locking) in combination with orphanRemoval