doctrine/doctrine2 — pull request #484 by jappie (2012-10-17 20:03:06+00:00)
Title: Prevented "Undefined index" notice when updating

While executing updates on an entity scheduled for update without a change-set, an "Undefined index" notice is raised.

This issue will occur when you manually call `$em()->getUnitOfWork()->scheduleForUpdate()` on an entity that hasn't changed. The entity will be included in `UnitOfWork::$entityUpdates`, but because there are no changes, its oid will not be included in `UnitOfWork::$entityChangeSets`.

I know I'm misusing `scheduleForUpdate()` a bit in this case, but the notice can easily be prevented with a `!empty()`.