* skip nonexistent fields.

This commit is contained in:
liwenrui
2023-08-28 10:58:32 +08:00
parent 2953f80383
commit 1321b60f44
+2
View File
@@ -822,6 +822,8 @@ class aiModel extends model
$objectData->$objectName = array();
foreach($objectKeys as $objectKey)
{
if(!isset($object->$objectName)) continue;
/* Check if is plain object, data might contain arrays. */
if(is_object($object->$objectName))
{