/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/CDbCommand.php(541)
529 { 530 if($this->_connection->enableProfiling) 531 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 532 533 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 534 $message=$e->getMessage(); 535 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 536 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 537 538 if(YII_DEBUG) 539 $message.='. The SQL statement executed was: '.$this->getText().$par; 540 541 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 542 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 543 } 544 } 545 546 /** 547 * Builds a SQL SELECT statement from the given query specification. 548 * @param array $query the query specification in name-value pairs. The following 549 * query options are supported: {@link select}, {@link distinct}, {@link from}, 550 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 551 * {@link limit}, {@link offset} and {@link union}. 552 * @return string the SQL statement 553 * @since 1.1.6
| #0 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/CDbCommand.php(395): CDbCommand->queryInternal("fetchAll", array(2), array()) 390 * An empty array is returned if the query results in nothing. 391 * @throws CException execution failed 392 */ 393 public function queryAll($fetchAssociative=true,$params=array()) 394 { 395 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 396 } 397 398 /** 399 * Executes the SQL statement and returns the first row of the result. 400 * This is a convenient method of {@link query} when only the first row of data is needed. |
| #1 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/ar/CActiveFinder.php(761): CDbCommand->queryAll() 756 * @param CJoinQuery $query the query to be executed. 757 */ 758 public function runQuery($query) 759 { 760 $command=$query->createCommand($this->_builder); 761 foreach($command->queryAll() as $row) 762 $this->populateRecord($query,$row); 763 } 764 765 /** 766 * Populates the active records with the query data. |
| #2 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/ar/CActiveFinder.php(489): CJoinElement->runQuery(CJoinQuery) 484 $this->_joined=true; 485 $child->_joined=true; 486 487 $this->_finder->baseLimited=false; 488 $child->buildQuery($query); 489 $child->runQuery($query); 490 foreach($child->children as $c) 491 $c->find(); 492 493 if(empty($child->records)) 494 return; |
| #3 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Categoria) 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
| #4 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/ar/CActiveRecord.php(272): CActiveFinder->lazyFind(Categoria) 267 else 268 $r=$name; 269 unset($this->_related[$name]); 270 271 $finder=new CActiveFinder($this,$r); 272 $finder->lazyFind($this); 273 274 if(!isset($this->_related[$name])) 275 { 276 if($relation instanceof CHasManyRelation) 277 $this->_related[$name]=array(); |
| #5 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/extranet/yii/db/ar/CActiveRecord.php(215): CActiveRecord->getRelated("produtos", false, array("condition" => "habilitar = 1")) 210 if(isset($this->getMetaData()->relations[$name])) 211 { 212 if(empty($parameters)) 213 return $this->getRelated($name,false); 214 else 215 return $this->getRelated($name,false,$parameters[0]); 216 } 217 218 $scopes=$this->scopes(); 219 if(isset($scopes[$name])) 220 { |
| #6 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/sidebar-products-filter.php(13): CActiveRecord->__call("produtos", array(array("condition" => "habilitar = 1"))) 08 <aside id="sidebar-filter"> 09 <ul> 10 <?php 11 if($categorias_menu){ 12 foreach ($categorias_menu as $categoria) { 13 $produtos_menu = $categoria->produtos(array('condition'=>"habilitar = 1")); 14 $subcategorias_menu = $categoria->categorias(array('condition'=>"habilitar = 1")); 15 if($produtos_menu || $subcategorias_menu){ 16 ?> 17 <li> 18 <?php |
| #7 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/sidebar-products-filter.php(13): Categoria->produtos(array("condition" => "habilitar = 1")) 08 <aside id="sidebar-filter"> 09 <ul> 10 <?php 11 if($categorias_menu){ 12 foreach ($categorias_menu as $categoria) { 13 $produtos_menu = $categoria->produtos(array('condition'=>"habilitar = 1")); 14 $subcategorias_menu = $categoria->categorias(array('condition'=>"habilitar = 1")); 15 if($produtos_menu || $subcategorias_menu){ 16 ?> 17 <li> 18 <?php |
| #8 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/area-de-vendas.php(92): include("/home/storage/1/0c/e6/cooasgo2/public_html/sidebar-products-filt...") 87 <div class="col-12 d-md-none"> 88 <button class="filterBtn" data-bs-toggle="collapse" data-bs-target="#sidebar-collapse" aria-expanded="false" aria-controls="sidebar-collapse">Filtros</button> 89 </div> 90 <div class="col-12 col-md-5 col-lg-4"> 91 <div id="sidebar-collapse" class="collapse"> 92 <?php include('sidebar-products-filter.php'); ?> 93 </div> 94 </div> 95 <div class="col-12 col-md-7 col-lg-8"> 96 <?php 97 if($produtos){ |
| #9 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/RequestManager.php(171): require_once("/home/storage/1/0c/e6/cooasgo2/public_html/area-de-vendas.php") 166 Utf8::encode($html); 167 echo $html; 168 exit; 169 } 170 171 require_once($require_file); 172 exit; 173 174 } 175 176 } |
| #10 |
+
–
/home/storage/1/0c/e6/cooasgo2/public_html/index.php(132): RequestManager->run(array("/" => "inicial.php", "/indicadores" => "inicial.php", "/destaques" => "listagem-destaques.php", "/cooasgo" => "institucional.php", ...)) 127 128 ); 129 130 131 132 $request_manager->run($rotas); 133 134 ?> 135 |