Since yesterday i'm trying to develop a form in ajax, inserting data to sf_guard_user table and a table called user (here is the profile).
The guard table has two collumns "email" and "password" to login, and "user" to retrieve data once logged in.
The registration form is in ajax, and is okey, but i don't know how to insert data in the two tables. I do the following (in an action called 'testing' -> /user/testing).
$user=new sfGuardUser();
$user->email='[email protected]';
$user->password='password';
I do comment the line $user->save(), and I get an error :
Unknown record property / related component "salt" on "sfGuardUser"
Here is the schema for sfGuardUser:
sfGuardUser:
actAs: [Timestampable]
columns:
email_address:
type: string(255)
notnull: true
unique: true
password: string(128)
is_active:
type: boolean
default: 1
is_super_admin:
type: boolean
default: false
last_login:
type: timestamp
(sorry for the bad indexing, don't know how to paste code)
And my other question is.. once I save the form, how do I save data in te "user" table like
$user->user->name='blabla';
$user->user->lastname='blablabla';
etc, etc, etc.
Thank you!!!