public function computeChangeSets()
    {
        foreach ($this->identityMap as $document) {
            $state = $this->getDocumentState($document);
            if ($state === self::STATE_MANAGED) {
                $class = $this->dm->getClassMetadata(get_class($document));
                $this->computeChangeSet($class, $document);
            }
        }
    }
public function computeChangeSets()
    {
        foreach ($this->identityMap as $document) {
            $state = $this->getDocumentState($document);
            if ($state === self::STATE_MANAGED) {
                $class = $this->dm->getClassMetadata(get_class($document));
                $this->computeChangeSet($class, $document);
            }
        }
    }
public function computeChangeSets ( ) { foreach ( $ this -> identityMap as $ document ) { $ state = $ this -> getDocumentState ( $ document ) ; if ( $ state === self :: STATE_MANAGED ) { $ class = $ this -> dm -> getClassMetadata ( get_class ( $ document ) ) ; $ this -> computeChangeSet ( $ class , $ document ) ; } } }
Detects the changes that need to be persisted.
Detects the changes that need to be persisted .