src/Persister/DocumentPersister.php
public function update($document): void
    {
        $class = $this->dm->getClassMetadata(get_class($document));
        $data = $this->prepareUpdateData($document);
        $id = $class->getSingleIdentifier($document);

        $this->collection->update((string) $id, $data['body'], $data['script']);
    }
public function update($document): void
    {
        $class = $this->dm->getClassMetadata(get_class($document));
        $data = $this->prepareUpdateData($document);
        $id = $class->getSingleIdentifier($document);

        $this->collection->update((string) $id, $data['body'], $data['script']);
    }
public function update ( $ document ) : void { $ class = $ this -> dm -> getClassMetadata ( get_class ( $ document ) ) ; $ data = $ this -> prepareUpdateData ( $ document ) ; $ id = $ class -> getSingleIdentifier ( $ document ) ; $ this -> collection -> update ( ( string ) $ id , $ data [ 'body' ] , $ data [ 'script' ] ) ; }
Updates a managed document.

@param object $document
Updates a managed document .