Users and companies have at least 3 common columns - id, login and
password. Keep them in one table and put specific fields in 2 others.
Point Auth to 'united' model. That's all.

On Oct 9, 9:26 pm, braaan <[email protected]> wrote:
> Hello,
>
> my currect application has normal User (Employees) and Company models
> among others.
>    => Users and companies should be able to login.
> Users can manage their account and Companies should be able to manage
> their employees (User).
> I didn't find a way to check companies- *and* users-table on a new
> login.
>
> i thought about extending AuthComponent but i'm not that familiar with
> cakephp.
>
> the thing why i need 2 "users"-models is, that User and Company have
> really different columns.
>
> do you have an idea how to solve that?
> thank you very much!
> greets
--~--~---------~--~----~------------~-------~--~----~
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