From a3d24fbb18dd6419238f12346f7d5f10fcc10a42 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 4 Dec 2026 10:07:27 -0500 Subject: [PATCH] - Quickfix on compound keys --- src/EntityTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EntityTrait.php b/src/EntityTrait.php index 50dc64d..2641d8a 100644 --- a/src/EntityTrait.php +++ b/src/EntityTrait.php @@ -193,7 +193,7 @@ trait EntityTrait { if ( null !== $compoundKeyFields = $this->resolveEntity()->getCompoundKeyFields() ) { $loaded = false; - foreach ($compoundKeyFields->column as $column) { + foreach ((array) $compoundKeyFields->column as $column) { $field = $this->resolveEntity()->field($column); if (! $field->allowsNull() ) {