I am using CakePHP for a web application. And I am in very initial stage of development. I am doing designing and developing side by side.
So far, I have 7 tables.
--Site
|--ABC
|--|--BCD [hasMany]
|--|--TED [hasMany]
|--|--NOC [hasOne]
|--|--GED [hasMany]
|--|--LOC [hasMany]
I am confused about what should be heirarchy of all these classes.
Currently I am defining relationships Site hasMany ABC and ABC hasMany BCD...LOC and viceversa. I am able to retrieve and save data currently.
What worries me is if the system is flexible enough to include any future changes easily.
About the hierarchy of my classes, Should Site extends AppModel and ABC extends Site and so on. OR Defining relationships will give me everything I need.
Everything is driven by ABC Controller.
Any suggestion?
Thank you in advance.