doctrine/mongodb-odm — pull request #379 by tlync (2012-08-01 08:59:26+00:00)
Title: Invalid argument error in doctrine:mongodb:cache:clear-metadata

There is bug when cache entries were successfully deleted in the command.

```
php app/console doctrine:mongodb:cache:clear-metadata
Clearing ALL Metadata cache entries

[ErrorException]
Warning: Invalid argument supplied for foreach() in /vagrant/Development/Projects/.../vendor/doctr
ine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Tools/Console/Command/ClearCache/MetadataCommand.php line 77
```

The latest(2.2) doctrine's CacheProvider#deleteAll return a boolean value.
However, current implementation expect to return an array.

See also: https://github.com/doctrine/common/commit/486169851ea87b3e14ed45d5bfd7d07b1d41af65