CException

Не определено свойство "StoreProduct.sale_on_yandex_fbsholo".

/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(162)

150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      * @throws CException
154      */
155     public function __set($name,$value)
156     {
157         if($this->setAttribute($name,$value)===false)
158         {
159             if(isset($this->getMetaData()->relations[$name]))
160                 $this->_related[$name]=$value;
161             else
162                 parent::__set($name,$value);
163         }
164     }
165 
166     /**
167      * Checks if a property value is null.
168      * This method overrides the parent implementation by checking
169      * if the named attribute is null or not.
170      * @param string $name the property name or the event name
171      * @return boolean whether the property value is null
172      */
173     public function __isset($name)
174     {

Stack Trace

#1
+
 /var/www/ishooter/data/protected/modules/store/models/StoreProduct.php(4475): CActiveRecord->__set("sale_on_yandex_fbsholo", null)
4470     {
4471         if (isset($this->marketplaceAttributes)) {
4472             $defaultMarketplace = StoreProductMarketplace::model()->findByAttributes(['object_id' => $this->id]);
4473 
4474             foreach($this->marketplaceAttributes as $attr)
4475                 $this->$attr = $defaultMarketplace ? $defaultMarketplace->$attr : null;//$this->$attr;
4476         }
4477     }
4478 
4479     public function syncExternalSource()
4480     {
#2
+
 /var/www/ishooter/data/protected/modules/store/models/StoreProduct.php(4286): StoreProduct->fixMarketplaceFields()
4281 
4282     protected function afterFind()
4283     {
4284         parent::afterFind();
4285 
4286         $this->fixMarketplaceFields();
4287 
4288         $this->old_attributes = $this->attributes;
4289         $this->old_manufacturer_id = $this->manufacturer_id;
4290         //$this->old_is_active = $this->is_active && $this->isAvailable;
4291         $this->old_is_active_and_available = $this->is_active && $this->isAvailable;
#8
+
 /var/www/ishooter/data/protected/modules/store/controllers/FrontProductController.php(241): CActiveRecord->find()
236         $this->activeProduct = false;
237 
238         $this->model = StoreProduct::model()
239             ->active()->initialized()->activeCategories()
240             ->withUrl($url)
241             ->find();
242 
243         if($this->model)
244         {
245             $this->activeProduct = true;
246             $this->model->syncExternalSource();
2024-03-28 11:14:48 Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.23