I don't know why, but in release server where i do upload my files i
found this problem with debug = 2.

SELECT `cidade`.`estado_id` FROM `sis_cidade` AS `cidade` WHERE
`Cidade`.`id` = '5' LIMIT 1 1109: Unknown table 'Cidade' in where
clause

In my local server the sql statement is different:
SELECT `Cidade`.`estado_id` FROM `sis_cidade` AS `Cidade` WHERE
`Cidade`.`id` = '6' LIMIT 1

Server = Cidade
Local = cidade

I don't know how to solve this problem, i think Cake should do this for
me, am i wrong?

the Php line that generate the sql statate is this:
$estado = $this->Cidade->find("Cidade.id =
'{$pessoa['Pessoa']['cidade_id']}'", array('estado_id'), null, -1);

Any enlightment?


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

Reply via email to