public function take($limit = null)
    {
        if ($limit !== null) {
            $this->limit($limit);
        }
        $this->executeSql();
        $cn = $this->model_name;
        return $cn::createModelsFromQuery($this);
    }
public function take($limit = null)
    {
        if ($limit !== null) {
            $this->limit($limit);
        }
        $this->executeSql();
        $cn = $this->model_name;
        return $cn::createModelsFromQuery($this);
    }
public function take ( $ limit = null ) { if ( $ limit !== null ) { $ this -> limit ( $ limit ) ; } $ this -> executeSql ( ) ; $ cn = $ this -> model_name ; return $ cn :: createModelsFromQuery ( $ this ) ; }
Excecutes the query.
Returns all records.

@return ActiveRecord\Collection
Excecutes the query . Returns all records .