public function get()
    {
        // Perform before hook
        $this->beforeGet();

        // Set basic query
        $this->db()->table($this->table)->select($this->columns)->limit($this->limit)->offset($this->offset)->orderBy($this->orderBy);

        // Resolve relationships
        $this->hasOne()->belongsToMany();

        // Get results
        $this->records = $this->db()->get();

        // Add has many relationships
        $this->hasMany();

        // Format relationships
        $this->formatBelongsToMany()->formatHasOne();

        // Perform after hook
        $this->afterGet();

        // Return query results
        return $this->records;
    }
public function get()
    {
        // Perform before hook
        $this->beforeGet();

        // Set basic query
        $this->db()->table($this->table)->select($this->columns)->limit($this->limit)->offset($this->offset)->orderBy($this->orderBy);

        // Resolve relationships
        $this->hasOne()->belongsToMany();

        // Get results
        $this->records = $this->db()->get();

        // Add has many relationships
        $this->hasMany();

        // Format relationships
        $this->formatBelongsToMany()->formatHasOne();

        // Perform after hook
        $this->afterGet();

        // Return query results
        return $this->records;
    }
public function get ( ) { // Perform before hook $ this -> beforeGet ( ) ; // Set basic query $ this -> db ( ) -> table ( $ this -> table ) -> select ( $ this -> columns ) -> limit ( $ this -> limit ) -> offset ( $ this -> offset ) -> orderBy ( $ this -> orderBy ) ; // Resolve relationships $ this -> hasOne ( ) -> belongsToMany ( ) ; // Get results $ this -> records = $ this -> db ( ) -> get ( ) ; // Add has many relationships $ this -> hasMany ( ) ; // Format relationships $ this -> formatBelongsToMany ( ) -> formatHasOne ( ) ; // Perform after hook $ this -> afterGet ( ) ; // Return query results return $ this -> records ; }
Returns an array of models

@return bool|array Array of models, or false
Returns an array of models