On Fri, Feb 13, 2009 at 10:12 PM, tatebn <[email protected]> wrote:
>
> I'm new to using bake and I'm having a small issue. I have a parent
> table with one to one relationship with about 5 other tables. So I'm
> assuming I need to use a hasONE relationship. When I use bake it
> automatically assumes a hasMany relationship. What do I do about this?
> I noticed that the same foreign key structure applies for both hasONE
> and hasMANY.

Hum...  Not sure now, but I think you can say "n" to the bake's suggestion
and then inform that the real relation is a hasOne.

Or even, you can proceed to the end and correct your generated model
files changing the hasMany to hasOne relationships with any text editor.

Best regards.

--
MARCELO DE F. ANDRADE (aka "eleKtron")
Belem, PA, Amazonia, Brazil
Linux User #221105

[...@parĂ¡ ~]# links http://pa.slackwarebrasil.org/

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