Hi, I´m doing a pretty simple test project with Cake and having some serious problems. I think the solution may be really simple, but I just cant solve it by myself.
What I want is simple one-to-one relation between user and profile tables. When user registers to system, his/hers username and password are saved in user table and some profile related stuff to the profile table. So I want to separate example phone number and email address to different table. And of course this profile record should be created automatically with user_id when registered. So obviosly it is easy to create this action and view to create user, which is saved to user-table. I also know how to define this one-to- one relation, that profile belongs to user and profile really has this user_id field. But how can I create this profile row and save example email address there in this same action. I think I should add email field to the view and then somehow add that to profile table with user id. Btw, I´m trying this with freshly baked default controllers and views. Models are working like they should be. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
