Hello

the app i'm baking has a "users" table.
A user can be a company or a person.
the majority of fields/val. rules are the same for persons/companies
Companies and persons have some different fields and validation rules.

What's, in your opinion, the smartest way to manage this situation?

1 - One table, one model and conditions coded ie: if($company)
{ $code; } else {$otherCode; }
2 - One table with two models pointing at it
3 - Two indipendent tables with two indipendent models
--~--~---------~--~----~------------~-------~--~----~
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