diff --git a/src/ORM/Table.php b/src/ORM/Table.php index 36376bf589a..e166a4b9f09 100644 --- a/src/ORM/Table.php +++ b/src/ORM/Table.php @@ -588,10 +588,6 @@ public function associations() { * @see \Cake\ORM\Table::belongsToMany() */ public function addAssociations(array $params) { - if ($params === null) { - return $this->_associations; - } - foreach ($params as $assocType => $tables) { foreach ($tables as $associated => $options) { if (is_numeric($associated)) {