|
@@ 1653-1654 (lines=2) @@
|
| 1650 |
|
return array("{$alias}.{$assoc['foreignKey']}" => '{$__cakeID__$}'); |
| 1651 |
|
case ($assoc['external'] && $type === 'belongsTo'): |
| 1652 |
|
return array("{$alias}.{$linkModel->primaryKey}" => '{$__cakeForeignKey__$}'); |
| 1653 |
|
case (!$assoc['external'] && $type === 'hasOne'): |
| 1654 |
|
return array("{$alias}.{$assoc['foreignKey']}" => $this->identifier("{$model->alias}.{$model->primaryKey}")); |
| 1655 |
|
case (!$assoc['external'] && $type === 'belongsTo'): |
| 1656 |
|
return array("{$model->alias}.{$assoc['foreignKey']}" => $this->identifier("{$alias}.{$linkModel->primaryKey}")); |
| 1657 |
|
case ($type === 'hasMany'): |
|
@@ 1655-1656 (lines=2) @@
|
| 1652 |
|
return array("{$alias}.{$linkModel->primaryKey}" => '{$__cakeForeignKey__$}'); |
| 1653 |
|
case (!$assoc['external'] && $type === 'hasOne'): |
| 1654 |
|
return array("{$alias}.{$assoc['foreignKey']}" => $this->identifier("{$model->alias}.{$model->primaryKey}")); |
| 1655 |
|
case (!$assoc['external'] && $type === 'belongsTo'): |
| 1656 |
|
return array("{$model->alias}.{$assoc['foreignKey']}" => $this->identifier("{$alias}.{$linkModel->primaryKey}")); |
| 1657 |
|
case ($type === 'hasMany'): |
| 1658 |
|
return array("{$alias}.{$assoc['foreignKey']}" => array('{$__cakeID__$}')); |
| 1659 |
|
case ($type === 'hasAndBelongsToMany'): |