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