From 136a6702f87acd6ec72ac9ea8a514ae7324bd207 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 9 Nov 2024 09:59:52 +0100 Subject: [PATCH] Fix entity insert with array fields. --- src/Entity.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity.php b/src/Entity.php index 7e501c6..6367d03 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -541,6 +541,10 @@ abstract class Entity // Prepend property name by the prefix. $propertyName = $prefix.$propertyName; + if (!($propertyDefinition instanceof FieldBlueprint)) + // Ignore all properties that are not normal fields. + continue; + if (isset($this->$propertyName)) { // If property is set, converting it. // Get property type.