public function getModel()
    {
        $itemModel = (new $this->itemModel())->with($this->itemModelRelations)->find($this->id);

        if (empty($itemModel)) {
            throw new ModelNotFound('Could not find the item model for '.$this->id);
        }

        return $itemModel;
    }
public function getModel()
    {
        $itemModel = (new $this->itemModel())->with($this->itemModelRelations)->find($this->id);

        if (empty($itemModel)) {
            throw new ModelNotFound('Could not find the item model for '.$this->id);
        }

        return $itemModel;
    }
public function getModel ( ) { $ itemModel = ( new $ this -> itemModel ( ) ) -> with ( $ this -> itemModelRelations ) -> find ( $ this -> id ) ; if ( empty ( $ itemModel ) ) { throw new ModelNotFound ( 'Could not find the item model for ' . $ this -> id ) ; } return $ itemModel ; }
Returns a Model.

@throws ModelNotFound
Returns a Model .