Re: Problem in model designing

2008-12-31 Thread kaushik
If I use three tables(one for common fields, one for uncommon fields of type A, another for uncommon fields of type B), I have no prob but how to make model or controller or view? Problem is that from a single interface, I have to insert or edit data two different tables? Do you can give some

Re: Problem in model designing

2008-12-31 Thread Adam Royle
For simplicity's sake I would keep them in the one table, and dynamically change the $validate array in my beforeValidate method of the model to suit. I've never used this but it may help you: http://bakery.cakephp.org/articles/view/conditinalvalidation-behavior Cheers, Adam On Dec 26 2008,

RE: Problem in model designing

2008-12-26 Thread Steven Wright
I would not store them in the same table. Store the common fields in one table and then use two other table to store the user type specific fields. Why do you want to store all the information in one table? -Original Message- From: cake-php@googlegroups.com