I'm using this model
class Title extends PaginationAppModel {
var $name= 'Title';
var $useTable = 'userjobids';
var $belongsTo= array (
'Category',
'Publisher',
'Taggie' => array (
'className' => 'Taggie',
'conditions' => 'Title.user_id= Taggie.user_id',
'order' => '',
'associationForeignKey'=> '',
'foreignKey' => 'user_id'
)
);
The problem is when I look a my var_dump that he also takes
Title.usertag_id = Taggie.id in to the query.
How do I get that one out of it?
var_dump:
AS `count` FROM `userjobids` AS `Title` LEFT JOIN `usertags` AS
`Taggie` ON (`Title`.`user_id`= `Taggie`.`user_id` AND
`Title`.`usertag_id` = `Taggie`.`id`)
SQL Error: 1054: Unknown column 'Title.usertag_id' in 'on clause' in
THX
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---