Browse Source

Pass cacheMetadata option through to collection.

Without this the metadata cache will *always* use `_cake_model_` which
is not how the code should work.
mark_story 12 years ago
parent
commit
463918b89d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Schema/Collection.php

+ 1 - 1
src/Database/Schema/Collection.php

@@ -60,7 +60,7 @@ class Collection {
 		$config = $this->_connection->config();
 
 		if (!empty($config['cacheMetadata'])) {
-			$this->cacheMetadata(true);
+			$this->cacheMetadata($config['cacheMetadata']);
 		}
 	}