Please read to know how to create the database:
http://book.cakephp.org/view/68/Creating-Database-Tables
and for relations:
http://book.cakephp.org/view/78/Associations-Linking-Models-Together
On Fri, Nov 28, 2008 at 3:29 PM, P <pierrelapree@gmail.com> wrote:
Hello,
i'm new to Cake & Bake and wonder if the order in which you bake your
models is important.
I have 4 models:
Org
Course
Chapter
Module
the following relationships apply
Org hasmany course
course hasone org
course hasmany chapter
chapter hasone course
chapter hasmany module
module hasone chapter
module hasone course
shall I start to bake the module model or the org model? is there a
rule?
thanks,
P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment