A few basic things, such as naming conventions and primary keys, are
all you generally need in your DB.

"Do I also have to setup the constrains in my database?"

Do you mean 'constraints' as they appear in SQL table definitions?
If you're referring to SQL commands such as REFERENCES, ON DELETE
CASCADE, etc, CakePHP might be able to use them to understand table
relationships  - I don't  know, the databases I use don't support this
syntax.

However you generally achieve these associations between tables at the
PHP level, by creating a few variables in the right classes to define
what other tables are linked to this one, and what these relationships
are.
In fact, this is much more powerful than the features available
directly in SQL!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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