[symfony-users] SfGuardPlugin

2007-06-13 Thread nathieb

Hey,

I try tu use sfGuardPlugin and to extend the sfGuardAuth with the
sfGuardUserProfile.
But when i use the official documentation, there is a trouble. the
utilisation of an foreign key
is impossible with propel, if somebody can help me.


French user
olivier


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: SfGuardPlugin

2007-06-13 Thread nathieb


> declaration to schema.yml as such:
>
> propel:
>_attributes: { package: "plugins.sfGuardPlugin.lib.model" }
>sf_guard_user:
>  _attributes: { phpName: sfGuardUser }
>  id:
>

Ok, it's the solution i found but when i declare user like this:

 _attributes :{ package: "plugins.sfGuardPlugin.lib.model" }
  sf_guard_user:
_attributes:   { phpName: sfGuardUser }
id:

propel:
  sf_guard_user_profile:
_attributes:   { phpName: sfGuardUserProfile }
user_id:   { type: integer, primaryKey: true,
foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade }
nom:varchar(20)
prenom: varchar(20)

in /apps/monprojet/data/fixtures/test.yml

sfGuardUser:
  moi:
username:   moi
password:   admin
is_super_admin: true
sfGuardUserProfile:
   moi:
 user_id: moi
 nom: nom
 prenom: prenom
 etc ...
sfGuardUser:
  toi:
etc 

then when i build the model with more one entry,
propel erase all data and keep just the first !!!
I don't if mine or if i don't really understand what i do.

when i try just with one record with sfGuardUser and
sfGuardUserPlugin,

the foreign key on the profil is not the good value
sfGuardUser
PK  username
1  moi

sfGuardUserProfile
PK   user_id nom
10  moi

normaly the user_id is 1 not 0.

j'en ai perdu mon latin

olivier,thanks


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfGuardPlugin

2007-06-19 Thread nathieb

Hey,

I've got an error when i try to insert data in sfGuardPlugin.

what is the "salt" column, It arrived when i try to use
sfGuardUserProfile,
I would try to reinstall the plugin but there is some error, and i
don't understand why !

 [PropelException]

  Unable to execute INSERT statement. [wrapped: Could not execute
update [Native Error: ERREUR:  Une valeur NULL dans la colonne <>
viole la contrainte NOT NULL] [User Info: INSERT INTO sf_guard_user
(USERNAME,PASSWORD,CREATED_AT,IS_SUPER_ADMIN,ID) VALUES
('admin','admin','2007-06-19 13:55:54 +0200','t',1)]]

olivier


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---