controller/behavior/resourceable.php
protected function _getResource($entity)
    {
        $model = $this->_getController()->getModel();

        $model->reset()->getState()->setValues(array(
            'package'     => $entity->package,
            'name'        => $entity->name,
            'resource_id' => $entity->row
        ));

        return $model->fetch();
    }
protected function _getResource($entity)
    {
        $model = $this->_getController()->getModel();

        $model->reset()->getState()->setValues(array(
            'package'     => $entity->package,
            'name'        => $entity->name,
            'resource_id' => $entity->row
        ));

        return $model->fetch();
    }
protected function _getResource ( $ entity ) { $ model = $ this -> _getController ( ) -> getModel ( ) ; $ model -> reset ( ) -> getState ( ) -> setValues ( array ( 'package' => $ entity -> package , 'name' => $ entity -> name , 'resource_id' => $ entity -> row ) ) ; return $ model -> fetch ( ) ; }
Resource getter.

@param KModelEntityInterface $entity The entity to get the resource from

@return KModelEntityInterface|null The resource
Resource getter .