From 463918b89dc0a06f8c2ec7aa78d1086c8657757d Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 19 May 2014 23:06:19 -0400 Subject: [PATCH] Pass cacheMetadata option through to collection. Without this the metadata cache will *always* use `_cake_model_` which is not how the code should work. --- src/Database/Schema/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Schema/Collection.php b/src/Database/Schema/Collection.php index 801ba39300d..b3519a7a2b9 100644 --- a/src/Database/Schema/Collection.php +++ b/src/Database/Schema/Collection.php @@ -60,7 +60,7 @@ public function __construct(Connection $connection) { $config = $this->_connection->config(); if (!empty($config['cacheMetadata'])) { - $this->cacheMetadata(true); + $this->cacheMetadata($config['cacheMetadata']); } }