Esempio n. 1
0
 public function init()
 {
     $class = $this->modelClass;
     //$this->tableName = $class::tableName();
     $this->_query = (new \ifw\db\Query())->from($class::tableName());
     parent::init();
 }
Esempio n. 2
0
 public function __get($key)
 {
     if ($this->hasComponent($key)) {
         return $this->getComponent($key);
     }
     parent::__get($key);
 }