/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(8648)
8636 class CActiveRecordMetaData 8637 { 8638 public $tableSchema; 8639 public $columns; 8640 public $relations=array(); 8641 public $attributeDefaults=array(); 8642 private $_modelClassName; 8643 public function __construct($model) 8644 { 8645 $this->_modelClassName=get_class($model); 8646 $tableName=$model->tableName(); 8647 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 8648 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 8649 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 8650 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 8651 { 8652 $table->primaryKey=$modelPk; 8653 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 8654 $table->columns[$table->primaryKey]->isPrimaryKey=true; 8655 elseif(is_array($table->primaryKey)) 8656 { 8657 foreach($table->primaryKey as $name) 8658 { 8659 if(isset($table->columns[$name])) 8660 $table->columns[$name]->isPrimaryKey=true;
#0 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(7744): CActiveRecordMetaData->__construct(AR_merchant) 7739 { 7740 $className=get_class($this); 7741 if(!array_key_exists($className,self::$_md)) 7742 { 7743 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 7744 self::$_md[$className]=new CActiveRecordMetaData($this); 7745 } 7746 return self::$_md[$className]; 7747 } 7748 public function refreshMetaData() 7749 { |
#1 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(7818): CActiveRecord->getMetaData() 7813 { 7814 return isset($this->getMetaData()->relations[$name]) ? $this->getMetaData()->relations[$name] : null; 7815 } 7816 public function getTableSchema() 7817 { 7818 return $this->getMetaData()->tableSchema; 7819 } 7820 public function getCommandBuilder() 7821 { 7822 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 7823 } |
#2 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(8166): CActiveRecord->getTableSchema() 8161 $this->applyScopes($criteria); 8162 if(empty($criteria->with)) 8163 { 8164 if(!$all) 8165 $criteria->limit=1; 8166 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 8167 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 8168 } 8169 else 8170 { 8171 $finder=$this->getActiveFinder($criteria->with); |
#3 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(8231): CActiveRecord->query(CDbCriteria) 8226 $this->_alias=$alias; 8227 } 8228 public function find($condition='',$params=array()) 8229 { 8230 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 8231 return $this->query($criteria); 8232 } 8233 public function findAll($condition='',$params=array()) 8234 { 8235 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 8236 return $this->query($criteria,true); |
#4 |
+
–
/var/www/u2598725/data/www/fboo.ru/protected/components/CustomUrlRule.php(21): CActiveRecord->find("restaurant_slug=:restaurant_slug AND status=:status", array(":restaurant_slug" => "component", ":status" => "active")) 16 17 $slug_name = isset($matches[0])?$matches[0]:''; 18 19 $dependency = CCacheData::dependency(); 20 $model = AR_merchant::model()->cache(Yii::app()->params->cache, $dependency)->find('restaurant_slug=:restaurant_slug AND status=:status', 21 array(':restaurant_slug'=>$slug_name, ':status'=>'active' )); 22 if($model){ 23 if(!empty($model->restaurant_slug)){ 24 return 'menu/menu'; 25 } 26 } |
#5 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(3260): CustomUrlRule->parseUrl(CUrlManager, HttpRequest, "component/jevents/month.calendar/2017/11/02/-", "component/jevents/month.calendar/2017/11/02/-") 3255 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 3256 foreach($this->_rules as $i=>$rule) 3257 { 3258 if(is_array($rule)) 3259 $this->_rules[$i]=$rule=Yii::createComponent($rule); 3260 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 3261 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 3262 } 3263 if($this->useStrictParsing) 3264 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 3265 array('{route}'=>$pathInfo))); |
#6 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(1716): CUrlManager->parseUrl(HttpRequest) 1711 $route=$this->catchAllRequest[0]; 1712 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1713 $_GET[$name]=$value; 1714 } 1715 else 1716 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1717 $this->runController($route); 1718 } 1719 protected function registerCoreComponents() 1720 { 1721 parent::registerCoreComponents(); |
#7 |
+
–
/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#8 |
+
–
/var/www/u2598725/data/www/fboo.ru/index.php(17): CApplication->run() 12 13 // remove the following line when in production mode 14 defined('YII_DEBUG') or define('YII_DEBUG',true); 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |