Permalink
Browse files

Use `NotFoundException`

  • Loading branch information...
1 parent c277f42 commit 0f974c26d2343997b98a25d1c736f3a6888f7736 @Baachi committed May 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Doctrine/KeyValueStore/Storage/MongoDbStorage.php
@@ -19,6 +19,8 @@
namespace Doctrine\KeyValueStore\Storage;
+use Doctrine\KeyValueStore\NotFoundException;
+
/**
* MongoDb storage
*
@@ -154,7 +156,7 @@ public function find($storageName, $key)
return $value['value'];
}
- return array();
+ throw new NotFoundException();
}
/**

0 comments on commit 0f974c2

Please sign in to comment.