hi
i need a model to hava a composed primary key i tried with:
var $primaryKey = 'id,Autoridade.cliente_id';
and
var $primaryKey = array('id',cliente_id');

with the first one the next error message is displayed when I try to
edit:
Query: SELECT `Autoridade`.`id`, `Autoridade`.`cliente_id` FROM
`autoridades` AS `Autoridade` LEFT JOIN `autcargos` AS `Autcargo` ON
`Autoridade`.`autcargo_id` = `Autcargo`.`id` LEFT JOIN `juridicos` AS
`Juridico` ON `Autoridade`.`cliente_id` = `Juridico`.`cliente_id`
WHERE `Autoridade`.`id,Autoridade`.`cliente_id` = 2 LIMIT 1
1054: Unknown column 'Autoridade.id,Autoridade.cliente_id' in 'where
clause'

but whe i try with the second one this error is displayed when trying
to see the index:
Query: SELECT COUNT(*) AS count FROM `autoridades` AS `Autoridade`
LEFT JOIN `autcargos` AS `Autcargo` ON `Autoridade`.`autcargo_id` =
`Autcargo`.`id` LEFT JOIN `juridicos` AS `Juridico` ON
`Autoridade`.`cliente_id` = `Juridico`.`cliente_id` WHERE
`autoridade`.`cliente_id` = 8 ORDER BY `Autoridade`.`Array` ASC
1054: Unknown column 'Autoridade.Array' in 'order clause'

I don't know what to do, how do i define the composed primary key???


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to