mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Adding fix for Ticket #2391
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4840 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4f78065c14
commit
b752463592
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ class DboSource extends DataSource {
|
|||
return null;
|
||||
}
|
||||
$count = count($resultSet);
|
||||
if($type === 'hasMany') {
|
||||
if($type === 'hasMany' && !isset($assocData['limit'])) {
|
||||
$ins = array();
|
||||
for($i = 0; $i < $count; $i++) {
|
||||
$in = $this->insertQueryData('{$__cakeID__$}', $resultSet[$i], $association, $assocData, $model, $linkModel, $stack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue