aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/ORM
diff options
context:
space:
mode:
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]);
}
}