public function find(array $where = [], array $field = [])
    {
        return $this
            ->createQuery(
                $this->getQueryBuilder()
                    ->select(array() === $field ? $this->getAlias() : $field)
                    ->from($this->getTable())
                    ->where($where)
            )
            ->execute()
            ->getOne()
            ;
    }
public function find(array $where = [], array $field = [])
    {
        return $this
            ->createQuery(
                $this->getQueryBuilder()
                    ->select(array() === $field ? $this->getAlias() : $field)
                    ->from($this->getTable())
                    ->where($where)
            )
            ->execute()
            ->getOne()
            ;
    }
public function find ( array $ where = [ ] , array $ field = [ ] ) { return $ this -> createQuery ( $ this -> getQueryBuilder ( ) -> select ( array ( ) === $ field ? $ this -> getAlias ( ) : $ field ) -> from ( $ this -> getTable ( ) ) -> where ( $ where ) ) -> execute ( ) -> getOne ( ) ; }
Fetch one row.

@param array $where
@param array $field
@return array The found object.
Fetch one row .