$model
$model : \stdClass
Model object
Class ModelProxyAbstract
By extending ModelProxyAbstract, class receives access to methods defined in $model object
Usage
class Test extends \Vegas\DI\Service\ModelProxyAbstract implements \Phalcon\DI\InjectionAwareInterface
{
use \Vegas\DI\InjectionAwareTrait;
public function __construct()
{
$this->model = new \TestModule\Models\TestModel();
}
//...
}
//... $test = new Test(); $records = $test->find();
__call( $method, $args) : mixed
Magic method that calls method which does not exist in child-class on the model object when it's initialized
$method | ||
$args |