Skip to content

Commit

Permalink
Use NotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
Baachi committed May 21, 2012
1 parent c277f42 commit 0f974c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/KeyValueStore/Storage/MongoDbStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

namespace Doctrine\KeyValueStore\Storage;

use Doctrine\KeyValueStore\NotFoundException;

/**
* MongoDb storage
*
Expand Down Expand Up @@ -154,7 +156,7 @@ public function find($storageName, $key)
return $value['value'];
}

return array();
throw new NotFoundException();
}

/**
Expand Down

0 comments on commit 0f974c2

Please sign in to comment.