Why are we restricting rows in dbo_source.php on line 841?
if ($type == 'hasAndBelongsToMany') {
$uniqueIds = $merge = array();
foreach($fetch as $j => $data) {
if (
(isset($data[$with]) && $data[$with][$foreignKey] ===
$row[$model->alias][$model->primaryKey]) &&
(!in_array($data[$with][$joinKeys[1]], $uniqueIds))
) {
$uniqueIds[] =
$data[$with][$joinKeys[1]];
if
($habtmFieldsCount <= 2) {
unset($data[$with]);
}
$merge[] =
$data;
}
}
if (empty($merge) &&
!isset($row[$association])) {
$row[$association] =
$merge;
} else {
$this->__mergeAssociation($resultSet[$i], $merge, $association,
$type);
}
}
Original discussion started in
http://groups.google.com/group/cake-php/browse_thread/thread/25341f4a28e69db7
A new discussion was opened since this topic has deviated from the
original discussion.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---