DOCTRINE 1.2 // SYMFONY 1.4
Hi!
in my website, am using the sfGuardPlugin‘s tables with the other tables in order to set an alarm system, the app gets to the users mails in order to get the mails and send the email,
now i need also a phone number for sending sms !
all i need is an extra field (“phone“) in the sfGuardUser ‘table,
i have been wondering if i could do it with “inheritence” but am stuck in the type (simple, concrete? …)
any idea?
I am not sure if you are having trouble simply creating the field in your database/model. If this is the case:
For example – if you are defining your tables in the schema.yml file, you could basically do something like this:
Just specify the sfGuardUser as it was a new, non-existing class and add your fields. The other (and in some cases better) way would be creating a new table for profile fields and using the sfGuardUser id as foreign key.
If the problem is with something else, let me know.