original_string: public function findOne($criteria = array())
      {
          $model = $this->fetchCache($criteria);
  
          if (is_null($model)) {
              $cursor = $this->find($criteria);
              $model = $cursor->getNext();
              $this->rememberCache($criteria, $model);
          }
  
          return $model;
      }
code: public function findOne($criteria = array())
      {
          $model = $this->fetchCache($criteria);
  
          if (is_null($model)) {
              $cursor = $this->find($criteria);
              $model = $cursor->getNext();
              $this->rememberCache($criteria, $model);
          }
  
          return $model;
      }
code_tokens: public function findOne ( $ criteria = array ( ) ) { $ model = $ this -> fetchCache ( $ criteria ) ; if ( is_null ( $ model ) ) { $ cursor = $ this -> find ( $ criteria ) ; $ model = $ cursor -> getNext ( ) ; $ this -> rememberCache ( $ criteria , $ model ) ; } return $ model ; }
docstring: Find one document from collection
  
  @param  array|mixed $criteria   Criteria to search
  
  @return Norm\Model
docstring_tokens: Find one document from collection