lines of code, but I believe your issue is that you're not calling
$this->User->Employer->create(); before saving your Employer record.
However it also seems as though you're doing this back to front?!? If
you have created two models, Employer and Contractor, which belong to
User then surely you should be using the Employer and Contractor
controllers (/employers/register and contractors/register) to manage
those objects and save a User at the same time otherwise you would
have to add extra logic into the User/register action and view to know
which model to associate the new user with?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment