So ... no one knows, hey? shucks.
On Oct 7, 2:58 pm, Brenton B <[EMAIL PROTECTED]> wrote:
> 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
> inhttp://groups.google.com/group/cake-php/browse_thread/thread/25341f4a...
> 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
-~----------~----~----~----~------~----~------~--~---- Confusion with $uniqueIds in dbo_source.php Brenton B
- Re: Confusion with $uniqueIds in dbo_source.php Brenton B
- Re: Confusion with $uniqueIds in dbo_source.php Brenton B
- Re: Confusion with $uniqueIds in dbo_source.php Gwoo
- Re: Confusion with $uniqueIds in dbo_source.ph... Brenton B
- Re: Confusion with $uniqueIds in dbo_sour... villas
- Re: Confusion with $uniqueIds in dbo_... Brenton B
- Re: Confusion with $uniqueIds in ... villas
- Re: Confusion with $uniqueIds in ... Brenton B
- Re: Confusion with $uniqueIds in ... Brenton B
- Re: Confusion with $uniqueIds in ... Mauro Zadu
