i created https://github.com/doctrine/phpcr-odm/pull/251

if we merge that, you could do `if (UnitOfWork::STATE_MANAGED === $this->dm->getUnitOfWork()->getDocumentState($document)) ` - i think all other states would indicate some problem or other. or what about STATE_NEW?