\Vegas\DI\ServiceModelProxyAbstract

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();

Summary

Methods
Properties
Constants
__call()
No public properties found
No constants found
No protected methods found
$model
N/A
No private methods found
No private properties found
N/A

Properties

$model

$model : \stdClass

Model object

Type

\stdClass

Methods

__call()

__call( $method,  $args) : mixed

Magic method that calls method which does not exist in child-class on the model object when it's initialized

Parameters

$method
$args

Throws

\Vegas\DI\Service\Exception\MethodNotFoundException
\Vegas\DI\Service\Exception\ProxyMethodNotFoundException

Returns

mixed