public final function FirstByField($field, $value, Sql\OrderList $orderBy = null, Sql\GroupList $groupBy = null)
    {
        $result = $this->FetchByField(false, $field, $value, $orderBy, $groupBy, 0, 1);
        if (count($result))
            return $result[0];
    }
public final function FirstByField($field, $value, Sql\OrderList $orderBy = null, Sql\GroupList $groupBy = null)
    {
        $result = $this->FetchByField(false, $field, $value, $orderBy, $groupBy, 0, 1);
        if (count($result))
            return $result[0];
    }
public final function FirstByField ( $ field , $ value , Sql \ OrderList $ orderBy = null , Sql \ GroupList $ groupBy = null ) { $ result = $ this -> FetchByField ( false , $ field , $ value , $ orderBy , $ groupBy , 0 , 1 ) ; if ( count ( $ result ) ) return $ result [ 0 ] ; }
Returns first result by field value
@param string $field Field Name
@param mixed $value A value type, TableObject or mappable object (e.g. Date)
@param Sql\OrderList $orderBy
@param Sql\GroupList $groupBy
@return TableObject
Returns first result by field value