Yii ORM Error: Property "Products.Array" is not defined on updating record

Yii ORM Error: Property "Products.Array" is not defined on updating record

请帮帮我!我无法更新数据库记录。每次调用 Products->save() 时都会出错 例如:

product = Products::model->findByPk(1);
product->status = 0;
product->save();

懂我

CException

Property "Products.Array" is not defined. (D:\Projects\My_Acme\framework\base\CComponent.php:130)

#0 D:\Projects\My_Acme\framework\db\ar\CActiveRecord.php(145): CComponent->__get()
#1 D:\Projects\My_Acme\protected\extensions\EAdvancedArBehavior.php(45): CActiveRecord->__get()
#2 D:\Projects\My_Acme\protected\extensions\EAdvancedArBehavior.php(28): EAdvancedArBehavior->fixBELONGS_TO()
#3 D:\Projects\My_Acme\framework\base\CComponent.php(561): EAdvancedArBehavior->beforeSave()
#4 D:\Projects\My_Acme\framework\db\ar\CActiveRecord.php(840): CComponent->raiseEvent()
#5 D:\Projects\My_Acme\framework\db\ar\CActiveRecord.php(942): CActiveRecord->onBeforeSave()
#6 D:\Projects\My_Acme\framework\db\ar\CActiveRecord.php(1119): CActiveRecord->beforeSave()
#7 D:\Projects\My_Acme\framework\db\ar\CActiveRecord.php(806): CActiveRecord->update()
#8 D:\Projects\My_Acme\protected\controllers\ProductsController.php(709): CActiveRecord->save()
#9 [internal function]: ProductsController->actionCreatebyhop()
#10 D:\Projects\My_Acme\framework\web\actions\CAction.php(108): ReflectionMethod->invokeArgs()
#11 D:\Projects\My_Acme\framework\web\actions\CInlineAction.php(47): CAction->runWithParamsInternal()
#12 D:\Projects\My_Acme\framework\web\CController.php(308): CInlineAction->runWithParams()
#13 D:\Projects\My_Acme\framework\web\filters\CFilterChain.php(133): CController->runAction()
#14 D:\Projects\My_Acme\framework\web\filters\CFilter.php(40): CFilterChain->run()
#15 D:\Projects\My_Acme\framework\web\CController.php(1145): CFilter->filter()
#16 D:\Projects\My_Acme\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl()
#17 D:\Projects\My_Acme\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#18 D:\Projects\My_Acme\framework\web\CController.php(291): CFilterChain->run()
#19 D:\Projects\My_Acme\framework\web\CController.php(265): CController->runActionWithFilters()
#20 D:\Projects\My_Acme\framework\web\CWebApplication.php(282): CController->run()
#21 D:\Projects\My_Acme\framework\web\CWebApplication.php(141): CWebApplication->runController()
#22 D:\Projects\My_Acme\framework\base\CApplication.php(180): CWebApplication->processRequest()
#23 D:\Projects\My_Acme\index.php(28): CApplication->run()
#24 {main}

产品模型有94个字段,6个与其他模型的关系,6个可数字段。我刚刚检查了字段名称、字段类型 - 一切正常...似乎表之间的关系无法正常工作。 Yii 版本是 1.1.14

我使用 PHP 7.4 和 Yii 版本 1.1.14...这是非常旧的版本,当我切换到 PHP 5.6 时,错误消失了))) 旧版应用程序