diff --git a/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php b/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php index cee54b8..6f349ff 100644 --- a/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php +++ b/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php @@ -121,7 +121,7 @@ public function find($storageName, $key) throw new NotFoundException(); } - unset($this->data[$storageName][serialize($key)]); + return $this->data[$storageName][serialize($key)]; } /**