Remove unneeded test inside conditional.

This commit is contained in:
Ber Clausen 2013-11-05 21:19:01 -03:00
parent f16695db5f
commit 5da05d9216

View file

@ -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;
}