First of all thanks for help me.
Yes, if you have a model like this
class Item extends AppModel {
.......
var $belongsTo = array(
'TipoPoder' => array(
'className' => 'TipoPoder',
'foreignKey' => 'tipo_poder_id',
)
);
When you perform this steps:
$options['joins'] = array(
array('table' => 'channels',
'alias' => 'Channel',
'type' => 'LEFT',
'conditions' => array(
'Channel.id = Item.channel_id',
)
)
);
$this->item->find('all',$options);
The result of that find operation returns the associations but Cakephp
associate first the model in the $options['joins'] array and after
that associate the Model in the BelongsTo. But I need that the Model
in the BelongsTo Association be te first in the JOIN.
}
On 17 nov, 04:40, phpMagpie <[email protected]> wrote:
> Sorry that did not make much sense to me :(
>
> How about telling us what models you have, how they are associated and what
> data you are trying to extract from them?
>
> HTH, Paul
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php