Greetings
I am starting over with a complex project using Cake.
In my database I have a `people` table that has been hitherto
represented by an abstract class. Another class called 'Judge' extends
Person. The underlying tables look like this, abbreviated for brevity's
sake:
CREATE TABLE 'people` (
`id` smallint(5) unsigned NOT NULL auto_increment,
`lastname` varchar(40) NOT NULL,
`firstname` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
CREATE TABLE `judges` (
`person_id` smallint(5) unsigned NOT NULL,
`location_id` smallint(5) unsigned NOT NULL,
`flavor` enum('USDJ','USMJ') default 'USDJ'
}
How do I tell Cake that the Judge model has exactly one and only one
related record in the people table?
I know saying
$hasOne = 'Person'
in the model judge.php is not right. It's the person model that *might*
have a related judge record, or it might have a related record in any
of several other tables/models.
Hope this makes sense, and TIA
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---