Hey
http://www.symfony-project.org/plugins/sfForkedDoctrineApplyPlugin
sound good :)

2011/6/1 Olivier Revollat <revol...@gmail.com>

> I know inheritance in doctrine but I wonder if this could work correctly
> with symfony forms ??
> Does anybody use inheritance for the same kind of pb ??
>
> 2011/6/1 Grzegorz Śliwiński <fi...@fizyk.net.pl>
>
>> Check out those two links about inheritance in Doctrine:
>>
>>
>> http://www.symfony-project.org/more-with-symfony/1_4/en/09-Doctrine-Form-Inheritance
>>
>> http://www.doctrine-project.org/projects/orm/1.2/docs/manual/inheritance/en#inheritance
>>
>>
>>
>> On Jun 1, 9:46 am, Olivier Revollat <revol...@gmail.com> wrote:
>> > up :)
>> >
>> > 2011/5/31 Olivier Revollat <revol...@gmail.com>
>> >
>> >
>> >
>> >
>> >
>> > > I want to usehttp://
>> www.symfony-project.org/plugins/sfDoctrineApplyPlugin
>> > > To allow users to register themselves but I have two kind of profile
>> with
>> > > different fields ...
>> >
>> > > for example say that
>> > > profile_type_1 has type_1_fields_1 and type_1_field_2, ...
>> > > and
>> > > profile_type_2 has type_2_fields_1 and type_2_field_2
>> >
>> > > my first idea was to "mix" all the fields in the same table
>> > > (sf_guard_user_profile) and only display the required fields on the
>> > > registration form ... but it sound very ugly :(
>> > > So I think the best solution is the have two separate tables :
>> >
>> > > sf_guard_user_profile_type_1
>> > > and
>> > > sf_guard_user_profile_type_2
>> >
>> > > and dynamically get the right profile regarding, for example, the
>> group
>> > > whom the user belong to ...
>> >
>> > > What do you think ? what is the best practice ?? code code examples ??
>> >
>> > > Thansks for your help :)
>> >
>> > --
>> > *Pour résoudre un problème intéressant, commencez par trouver un
>> problème
>> > qui vous intéresse.*
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> *Pour résoudre un problème intéressant, commencez par trouver un problème
> qui vous intéresse.*
>



-- 
*Pour résoudre un problème intéressant, commencez par trouver un problème
qui vous intéresse.*

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to