예제 #1
0
파일: ActiveQuery.php 프로젝트: nadar/ifw
 public function init()
 {
     $class = $this->modelClass;
     //$this->tableName = $class::tableName();
     $this->_query = (new \ifw\db\Query())->from($class::tableName());
     parent::init();
 }
예제 #2
0
파일: Application.php 프로젝트: nadar/ifw
 public function __get($key)
 {
     if ($this->hasComponent($key)) {
         return $this->getComponent($key);
     }
     parent::__get($key);
 }