This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » embeded form doesn't save changes
icon5.gif  embeded form doesn't save changes [message #102972] Fri, 23 July 2010 05:50
luiggi_ff  is currently offline luiggi_ff
Messages: 1
Registered: July 2010
Junior Member
Hi, I'm new to symfony, and I'm having trouble getting the sfguarduser embedded into the profile admin generator edit form. In fact, i got the form embedded but when i make changes to the groups or permissions list, they wont get saved. No errors are shown and the flash after i hit save reports the operation was successful but no changes are made to the database.

I've been searching the forums and trying different ways, but i still can't get this working. Can somebody please tell me if I'm missing something?

my schema.yml:
Usuarios:
connection: doctrine
tableName: Usuarios
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
nombre:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
apellido:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
direccion:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
telefono:
type: string(12)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
celular:
type: string(15)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
email:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
sfGuardUser:
local: id
foreign: id
type: one
foreignType: one
foreignAlias: profile

to embed the form i have in lib/form/doctrine/UsuariosForm.class.php:

class UsuariosForm extends BaseUsuariosForm
{
public function configure()
{
$this->embedRelation('sfGuardUser');
}

thanks in advance
Luiggi
Previous Topic:sfGuard modification/extension
Next Topic:No valid packages found for sfForkedDotrctineApplyPlugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software