[symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-02 Thread Grzegorz Śliwiński
Inheritance worked quite good, when I worked with these on diem based
portal.

sfForked used inheritance initially, but as always, you have to make
the final mechanism to process inherited objects, so at current
version it's up to developer, whether he'll add inheritance, or not.



On Jun 1, 4:39 pm, Olivier Revollat revol...@gmail.com wrote:
 Heyhttp://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-F...

 http://www.doctrine-project.org/projects/orm/1.2/docs/manual/inherita...

  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


[symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-01 Thread Olivier Revollat
up :)

2011/5/31 Olivier Revollat revol...@gmail.com

 I want to use http://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


[symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-01 Thread Grzegorz Śliwiński
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


Re: [symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-01 Thread Olivier Revollat
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.*

-- 
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


Re: [symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-01 Thread Olivier Revollat
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