class aMember extends AppModel {
var $useTable = 'aMember';
var $primaryKey = 'member_id';
// Other variables, model associations, functions, etc..
}
And you're done.
-Joel.
On Apr 12, 5:04 am, ben <[EMAIL PROTECTED]> wrote:
> I'll bet there's an easy solution for this one:
> I am using aMember to bill for subscriptions to my site. Unfortunately
> the users table in aMember has the primary key set to "member_id"
> instead of they key "id" which is called for in the cakephp naming
> conventions and opens up a world of ease.
> Is there any way to tell cakephp that for this one table "member_id"
> should be treated as "id"?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---