Doctrine\MongoDB\Query\Builder::find PHP Method

find() public method

Change the query type to find.
public find ( )
    public function find()
    {
        $this->query['type'] = Query::TYPE_FIND;
        return $this;
    }

Usage Example

示例#1
0
 /**
  * Change the query type to find and optionally set and change the class being queried.
  *
  * @param string $documentName
  * @return Builder
  */
 public function find($documentName = null)
 {
     $this->setDocumentName($documentName);
     parent::find();
     return $this;
 }