You simply tell the model what the name of the table is as described
here: http://book.cakephp.org/view/436/useTable

You can always use existing table structure, it's just a little easier
with things that follow the Cake convention.

I do something similar with the primary key fields in my DB, since my
convention is to name the ID with the entity name (e.g. - users table
primary key is user_id), and all I have to do is add the $primaryKey
to the model.

On Feb 2, 9:06 am, persivo_cunha <[email protected]> wrote:
> Hello,
>
> i'm using HABTM but, how i didn't know it, my db doesn't follow the
> cake's convention. I have two tables called 'objetos_aprendizagens'
> and 'usuarios', but my join table is 'objeto_aprendizagem_autores' .
> How can i use it without change my db?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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