Hi, I have the following scenario:

class Cliente extends AppModel
{
    var $name = 'Cliente';
    var $useTable = 'usuarios';
    var $primaryKey  = 'idUsuario';
    var $useDbConfig = 'data1';

/*...*/
}

class Usuario extends AppModel
{
        var $name = 'Usuario';
        var $useTable = 'usuarios';
        var $primaryKey  = 'id_usuario';
        var $useDbConfig = 'default'; // Tried with and whithout this

/*...*/
}

The thing is that two tables in different DB's have the same name.

In different situations, when I try, for example,
$this->Usuario->save(); Cake uses the wrong database: data1.
And I get mysql errors like 1054 unknow column.

Any ideas?
thanks
Mariano


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