Doctrine\ODM\CouchDB\Event\LifecycleEventArgs::getDocument PHP Method

getDocument() public method

public getDocument ( ) : object
return object
    public function getDocument()
    {
        return $this->document;
    }

Usage Example

Beispiel #1
0
 /**
  * @param LifecycleEventArgs $args
  */
 public function preUpdate($args)
 {
     $object = $args->getDocument();
     if ($object instanceof UserInterface) {
         $this->updateUserFields($object);
     }
 }
All Usage Examples Of Doctrine\ODM\CouchDB\Event\LifecycleEventArgs::getDocument