Мы гарантируем безопасность покупки квартиры!
Купить квартиру
Продать квартиру
Ипотека
Квартиры в аренду без посредников
Без посредников! Без оплаты услуг! Выбери квартиру самостоятельно! |
Таблица "houses", упомянутая в записи active record класса "House", не найдена в базе данных.
/home/www/an24.org/backend/framework/db/ar/CActiveRecord.php(2385)
2373 2374 /** 2375 * Constructor. 2376 * @param CActiveRecord $model the model instance 2377 * @throws CDbException if specified table for active record class cannot be found in the database 2378 */ 2379 public function __construct($model) 2380 { 2381 $this->_modelClassName=get_class($model); 2382 2383 $tableName=$model->tableName(); 2384 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2385 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2386 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2387 2388 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2389 { 2390 $table->primaryKey=$modelPk; 2391 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2392 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2393 elseif(is_array($table->primaryKey)) 2394 { 2395 foreach($table->primaryKey as $name) 2396 { 2397 if(isset($table->columns[$name]))
#0 |
+
–
/home/www/an24.org/backend/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(House) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#1 |
+
–
/home/www/an24.org/backend/framework/db/ar/CActiveRecord.php(661): CActiveRecord->getMetaData() 656 * Returns the metadata of the table that this AR belongs to 657 * @return CDbTableSchema the metadata of the table that this AR belongs to 658 */ 659 public function getTableSchema() 660 { 661 return $this->getMetaData()->tableSchema; 662 } 663 664 /** 665 * Returns the command builder used by this AR. 666 * @return CDbCommandBuilder the command builder used by this AR |
#2 |
+
–
/home/www/an24.org/backend/framework/db/ar/CActiveRecord.php(1523): CActiveRecord->getTableSchema() 1518 */ 1519 public function findByAttributes($attributes,$condition='',$params=array()) 1520 { 1521 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1522 $prefix=$this->getTableAlias(true).'.'; 1523 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1524 return $this->query($criteria); 1525 } 1526 1527 /** 1528 * Finds all active records that have the specified attribute values. |
#3 |
+
–
/home/www/an24.org/backend/protected/controllers/HousesController.php(108): CActiveRecord->findByAttributes(array("name_url" => "kolomenskiy")) 103 elseif (isset($GLOBALS['link']['name'])) 104 $jkName = $GLOBALS['link']['name']; 105 else 106 $jkName=''; 107 108 $model = House::model()->with('city', 'area', 'childs.images', 'childs.cover')->findByAttributes(['name_url'=>$jkName]); 109 if ($model) 110 { 111 $condition = 't.geo_region = :geo_region'; 112 $params=[':geo_region'=>$model->city_id]; 113 if (Yii::app()->agent->byUrl->isDeveloper || Yii::app()->agent->byUrl->isContragent) { |
#4 |
+
–
/home/www/an24.org/backend/framework/web/actions/CInlineAction.php(49): HousesController->actionViewJk() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#5 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#6 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#8 |
+
–
/home/www/an24.org/backend/framework/web/CWebApplication.php(282): CController->run("viewJK") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/home/www/an24.org/site/templates/default.php(788): CWebApplication->runController("houses/viewJK") 783 { 784 // выполняем экшен(ы) 785 if ($GLOBALS['link']['name'] == 'kompleksy' && !$_GET['jk_name']) 786 Yii::app()->runController('houses/viewJKs'); 787 if ($GLOBALS['link']['name'] != 'kompleksy' || $_GET['jk_name']) 788 Yii::app()->runController('houses/viewJK'); 789 } 790 elseif ($GLOBALS['link']['name'] == 'pokupka_kvartiryi') 791 include "site/base/modules/buy_nedv/buy.php"; 792 elseif ($GLOBALS['link']['name'] == 'orders') 793 include "site/base/modules/buy_nedv/buy.php"; |
#10 |
+
–
/home/www/an24.org/index.php(69): include("/home/www/an24.org/site/templates/default.php") 64 if (is_numeric($_GET[rid]) AND !isset($_COOKIE[refer])) 65 inc_ref_count($_GET[rid], true); 66 if (is_numeric($_COOKIE[refer])) 67 inc_ref_count($_COOKIE[refer], false); 68 69 include "site/templates/default.php"; 70 71 72 73 74 |