From 2777d36d5e5271ea70f8ee7d4c403e4309812de8 Mon Sep 17 00:00:00 2001
From: Thomas Lange <code@nerdmind.de>
Date: Fri, 25 Jun 2021 22:16:33 +0200
Subject: Fix wrong property name in Repository class

---
 core/namespace/ORM/Repository.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'core/namespace')

diff --git a/core/namespace/ORM/Repository.php b/core/namespace/ORM/Repository.php
index 507605c..868a60b 100644
--- a/core/namespace/ORM/Repository.php
+++ b/core/namespace/ORM/Repository.php
@@ -42,8 +42,8 @@ abstract class Repository {
 	# Removes an entity from the runtime cache
 	#===============================================================================
 	protected function removeInstance(int $identifier) {
-		if(isset($this->cache[$identifier])) {
-			unset($this->cache[$identifier]);
+		if(isset($this->entities[$identifier])) {
+			unset($this->entities[$identifier]);
 		}
 	}
 
-- 
cgit v1.2.3