From 5da05d9216610dc2d7987ae2e908378d0bfaf09f Mon Sep 17 00:00:00 2001 From: Ber Clausen Date: Tue, 5 Nov 2013 21:19:01 -0300 Subject: [PATCH] Remove unneeded test inside conditional. --- lib/Cake/Model/Datasource/DboSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 12afffc82..1df0038f9 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -1112,7 +1112,7 @@ class DboSource extends DataSource { } else { $db = ConnectionManager::getDataSource($linkModel->useDbConfig); } - } elseif ($model->recursive > 1 && ($type === 'belongsTo' || $type === 'hasOne')) { + } elseif ($model->recursive > 1) { $db = $this; }