src/Database/Model.php
public function get($id = null)
    {
        if ($id !== null) {
            $this->eq($this->primary, $id);
        }

        $this->defaultTable();
        DB::get($this->sql, PDO::FETCH_INTO, $this->reset());

        return $this->dirty();
    }
public function get($id = null)
    {
        if ($id !== null) {
            $this->eq($this->primary, $id);
        }

        $this->defaultTable();
        DB::get($this->sql, PDO::FETCH_INTO, $this->reset());

        return $this->dirty();
    }
public function get ( $ id = null ) { if ( $ id !== null ) { $ this -> eq ( $ this -> primary , $ id ) ; } $ this -> defaultTable ( ) ; DB :: get ( $ this -> sql , PDO :: FETCH_INTO , $ this -> reset ( ) ) ; return $ this -> dirty ( ) ; }
function to find one record and assign in to current object.

@param int $id If call this function using this param, will find record by using this id. If not set, just find
the first record in database.

@return bool|self if find record, assign in to current object and return it, other wise return "false".
function to find one record and assign in to current object .