On Nov 2, 2007, at 12:00 PM, Chris Thompson wrote:

>
> Where I work, we are testing out CakePHP to replace our existing
> codebase.
>
> I have two questions.
>
> 1. Do all primary keys for tables have to be 'id'?

By convention, yes. By configuration, no. See $primaryKey in the Model.

> <snip>

For $recursive to work, you need to associate your models via  
hasMany, hasOne, belongsTo, or hasAndBelongsToMany. Check the models  
chapter of the manual.

-- John



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