src/mako/database/midgard/Query.php
public function get($id, array $columns = [])
	{
		if(!empty($columns))
		{
			$this->select($columns);
		}

		return $this->where($this->model->getPrimaryKey(), '=', $id)->first();
	}
public function get($id, array $columns = [])
	{
		if(!empty($columns))
		{
			$this->select($columns);
		}

		return $this->where($this->model->getPrimaryKey(), '=', $id)->first();
	}
public function get ( $ id , array $ columns = [ ] ) { if ( ! empty ( $ columns ) ) { $ this -> select ( $ columns ) ; } return $ this -> where ( $ this -> model -> getPrimaryKey ( ) , '=' , $ id ) -> first ( ) ; }
Returns a record using the value of its primary key.

@param  int|string                 $id      Primary key
@param  array                      $columns Columns to select
@return \mako\database\midgard\ORM
Returns a record using the value of its primary key .