mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
quick fix for with and saveMulti
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6490 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
394322f35d
commit
1fbc3e6a9b
1 changed files with 1 additions and 1 deletions
|
@ -1191,7 +1191,7 @@ class Model extends Overloadable {
|
||||||
$newValues = array();
|
$newValues = array();
|
||||||
if (isset($this->hasAndBelongsToMany[$assoc])) {
|
if (isset($this->hasAndBelongsToMany[$assoc])) {
|
||||||
list($join) = $this->joinModel($this->hasAndBelongsToMany[$assoc]['with']);
|
list($join) = $this->joinModel($this->hasAndBelongsToMany[$assoc]['with']);
|
||||||
$conditions = array($this->hasAndBelongsToMany[$assoc]['foreignKey'] => $id);
|
$conditions = array($join . '.' . $this->hasAndBelongsToMany[$assoc]['foreignKey'] => $id);
|
||||||
$links = array();
|
$links = array();
|
||||||
|
|
||||||
if ($this->hasAndBelongsToMany[$assoc]['unique']) {
|
if ($this->hasAndBelongsToMany[$assoc]['unique']) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue