aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/ORM
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-25 22:16:33 +0200
committerThomas Lange <code@nerdmind.de>2021-06-25 22:16:33 +0200
commit2777d36d5e5271ea70f8ee7d4c403e4309812de8 (patch)
treefdf329823aac507fc2cf34cc9baefabee51d57b6 /core/namespace/ORM
parenta86bdc6b5bab78b4026f44161413f4e482df42e4 (diff)
downloadblog-2777d36d5e5271ea70f8ee7d4c403e4309812de8.tar.gz
blog-2777d36d5e5271ea70f8ee7d4c403e4309812de8.tar.xz
blog-2777d36d5e5271ea70f8ee7d4c403e4309812de8.zip
Fix wrong property name in Repository class
Diffstat (limited to 'core/namespace/ORM')
-rw-r--r--core/namespace/ORM/Repository.php4
1 files changed, 2 insertions, 2 deletions
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]);
}
}