findOneAndDelete() 공개 메소드

public findOneAndDelete ( $collectionName, $filter, array $options = [] )
$options array
예제 #1
0
파일: Mongo.php 프로젝트: webiny/hrc
 /**
  * Removes the index entry for the given cache key.
  *
  * @param string $key
  *
  * @return bool True if delete was successful, otherwise false.
  */
 public function deleteEntryByKey($key)
 {
     $this->mongoInstance->findOneAndDelete(self::collection, ['key' => $key]);
     return true;
 }