Fix entity insert with array fields.

This commit is contained in:
Madeorsk 2024-11-09 09:59:52 +01:00
parent 156401d73d
commit 136a6702f8
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F

View file

@ -541,6 +541,10 @@ abstract class Entity
// Prepend property name by the prefix. // Prepend property name by the prefix.
$propertyName = $prefix.$propertyName; $propertyName = $prefix.$propertyName;
if (!($propertyDefinition instanceof FieldBlueprint))
// Ignore all properties that are not normal fields.
continue;
if (isset($this->$propertyName)) if (isset($this->$propertyName))
{ // If property is set, converting it. { // If property is set, converting it.
// Get property type. // Get property type.