Could you paste your RankDomain fixtures? the problem may be there

On Wed, Aug 18, 2010 at 3:12 AM, RusAlex <interpret...@gmail.com> wrote:

> IT's a standart fixtures:
> sfGuardUser:
>  User_admin:
>    first_name:     John
>    last_name:      Doe
>    email_address:  john....@gmail.com
>    username:       admin
>    password:       admin
>    is_super_admin: true
>    Groups:         [Group_admin]
>
> sfGuardGroup:
>  Group_admin:
>    name:           admin
>    description:    Administrator group
>    Permissions:    [Permission_admin]
>
> sfGuardPermission:
>  Permission_admin:
>    name:           admin
>    description:    Administrator permission
>
> On Aug 17, 3:12 pm, Javier Garcia <tirengar...@gmail.com> wrote:
> >   Could paste the fixture?
> >
> > On 08/17/2010 12:50 PM, RusAlex wrote:
> >
> >
> >
> >
> >
> > > No im sorry i have mistake in pasting. I have a correct relations
> > > RankDomain:
> > >    columns:
> > >      name: { type: string(255), notnull: true, unique: true }
> > >      user_id: { type: integer, notnull:true }
> > >    relations:
> > >      sfGuardUser: { local: user_id, foreign: id }
> >
> > > but error still exist
> >
> > > On Aug 17, 11:44 am, Joep Brunsveld<jbbrunsv...@gmail.com>  wrote:
> > >> It seems that you forgot the "relations" indentation.
> >
> > >> It must be:
> > >> RankDomain:
> > >>    columns:
> > >>      name: { type: string(255), notnull: true, unique: true }
> > >>      user_id: { type: integer, notnull:true }
> > >>    relations:
> > >>      sfGuardUser: { local: user_id, foreign: id }
> >
> > >> On Aug 17, 7:33 am, RusAlex<interpret...@gmail.com>  wrote:
> >
> > >>> schema.yml
> > >>> RankDomain:
> > >>>    columns:
> > >>>      name: { type: string(255), notnull: true, unique: true }
> > >>>      user_id: { type: integer, notnull:true }
> > >>>      sfGuardUser: { local: user_id, foreign: id }
> > >>> $php symfony doctrine:build --all --and-load
> > >>> and see red Error:
> > >>>    SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add
> or
> > >>> update a child row: a foreign key constraint fails
> > >>> (`ranks`.`rank_domain`, CONSTRAINT
> > >>> `rank_domain_user_id_sf_guard_user_id` FOREIGN KEY (`user_id`)
> > >>> REFERENCES `sf_guard_user` (`id`))
> > >>> What im doing wrong ?
> >
> > --
> > Javi
> >
> > Ubuntu 8.04
>
> --
> 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<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

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