Exemplo n.º 1
0
 /**
  * @see BackendAdapter::updateFolder
  */
 public function updateFolder(Folder $folder)
 {
     $document = $folder->toArray();
     return $this->update('folders', $folder->getId(), $document);
 }
Exemplo n.º 2
0
 /**
  * @see BackendAdapter::updateFolder
  */
 public function updateFolder(Folder $folder)
 {
     $document = $folder->toArray();
     unset($document['id']);
     $ret = $this->getMongo()->folders->update(array('_id' => new MongoId($folder->getId())), $document, array('w' => true));
     return (bool) $ret['n'];
 }