original_string: public function findOneBy(array $criteria = [], array $orders = [], $offset = null): ?AbstractEntity
      {
          $array = $this->findBy($criteria, $orders, 1, $offset);
  
          return array_shift($array);
      }
code: public function findOneBy(array $criteria = [], array $orders = [], $offset = null): ?AbstractEntity
      {
          $array = $this->findBy($criteria, $orders, 1, $offset);
  
          return array_shift($array);
      }
code_tokens: public function findOneBy ( array $ criteria = [ ] , array $ orders = [ ] , $ offset = null ) : ? AbstractEntity { $ array = $ this -> findBy ( $ criteria , $ orders , 1 , $ offset ) ; return array_shift ( $ array ) ; }
docstring: Finds one entity from criteria
  
  @param array $criteria
  @param array $orders
  @param null  $offset
  
  @return AbstractEntity
docstring_tokens: Finds one entity from criteria