Hello Daniel,

Sorry for being late.

I added the widgets in the form.class.

I created a module based on Areamedicapersona model. In the /new
action only the text values appear, That's why I added the widgets to
the areamedicapersona.form.class

The Widgets contain the areamedica and sfguarduser , what I want to do
is that when selected the values get inserted into the db. When
creating a new areamedicapersona I get the following:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
update a child row: a foreign key constraint fails
(`hcn`.`areamedicapersona`, CONSTRAINT
`areamedicapersona_usuarioid_sf_guard_user_id` FOREIGN KEY
(`usuarioid`) REFERENCES `sf_guard_user` (`id`))

INSERT INTO areamedicapersona (bio, pic) VALUES ('test1', 'test2')

Here's an image:
http://i961.photobucket.com/albums/ae94/kman_06/Untitled.jpg

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