static public function findBySql($sql, array $params = array(), array $extra_params = array())
    {
        $query = self::createRelation();
        
        $query->complete_sql($sql, $params, $extra_params);
        
        return $query->take();
    }
static public function findBySql($sql, array $params = array(), array $extra_params = array())
    {
        $query = self::createRelation();
        
        $query->complete_sql($sql, $params, $extra_params);
        
        return $query->take();
    }
static public function findBySql ( $ sql , array $ params = array ( ) , array $ extra_params = array ( ) ) { $ query = self :: createRelation ( ) ; $ query -> complete_sql ( $ sql , $ params , $ extra_params ) ; return $ query -> take ( ) ; }
When calling this method for pagination, how do we tell it
the values for page and per_page? That's what extra_params is for...
Although maybe it's not the most elegant solution.
extra_params accepts 'page' and 'per_page', they will be sent to Query
where they will be parsed.
When calling this method for pagination how do we tell it the values for page and per_page? That s what extra_params is for ... Although maybe it s not the most elegant solution . extra_params accepts page and per_page they will be sent to Query where they will be parsed .