Re: How to handle multiple user types
What is the other tables? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How to handle multiple user types
I have a parties table as well. On May 14, 3:17 am, Zaky Katalan-Ezra procsh...@gmail.com wrote: What is the other tables? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
How to handle multiple user types
Hi everyone, I'm just curious how everyone else out there handles different user types when they have different data associated with them? I have a system that has guests, members and hosts. Each user type has many different fields associated with them. Currently I handle it by having a main user table that has the common data (email, username, password) and also has a role field which stores what type of user they are. I then link my user table to the other tables using the $hasOne. In each of my other tables (guest, member, host) I have all the particular data associated with that member type. While I originally felt this was the best way to handle this, I feel like it's getting messy. Of course, I couldn't hold all those different field types in one users table. I kept the user table as it allows for easy integration with the Auth component (I know it can get difficult to use Auth with many different tables holding usernames and passwords). Any thoughts? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en