public function find($id)
    {
        $capsule = $this->_database->getCapsule();

        $this->_model = $capsule->table($this->table)->where('id', '=', $id);

        return $this->_model->first();
    }
public function find($id)
    {
        $capsule = $this->_database->getCapsule();

        $this->_model = $capsule->table($this->table)->where('id', '=', $id);

        return $this->_model->first();
    }
public function find ( $ id ) { $ capsule = $ this -> _database -> getCapsule ( ) ; $ this -> _model = $ capsule -> table ( $ this -> table ) -> where ( 'id' , '=' , $ id ) ; return $ this -> _model -> first ( ) ; }
Finds an item by it's id.

@param int $id

@return stdClass
Finds an item by it s id .