computeSingleDocumentChangeSet() 공개 메소드

Detects the changes for a single document
public computeSingleDocumentChangeSet ( object $document )
$document object
예제 #1
0
 /**
  * @see https://github.com/doctrine/phpcr-odm/issues/637
  * @covers Doctrine\ODM\PHPCR\UnitOfWork::computeSingleDocumentChangeSet
  */
 public function testComputeSingleDocumentChangeSetForRemovedDocument()
 {
     $object = new UoWUser();
     $object->username = "******";
     $object->id = '/somepath';
     $this->uow->scheduleRemove($object);
     // Should not throw "InvalidArgumentException: Document has to be managed for single computation"
     $this->uow->computeSingleDocumentChangeSet($object);
 }