From f2084c161d45e9ae720b6f9be31fbce6d5b84a90 Mon Sep 17 00:00:00 2001 From: Artur Welp Date: Mon, 24 Aug 2026 14:09:58 -0300 Subject: [PATCH] Don't try to propagate when there is nothin to propagate --- src/ORM/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Entity.php b/src/ORM/Entity.php index a2da7ec..91c223d 100755 --- a/src/ORM/Entity.php +++ b/src/ORM/Entity.php @@ -670,7 +670,7 @@ abstract class Entity if (in_array($relation, $possibleRelations)) { $this->$relation = $this->$relation()->get(); } - if ($this->$relation) { + if ($this->$relation && $propagate) { $this->$relation->with($propagate); } }