Hi EveryBody,

I have a problem with Doctrine Behavior "I18n" in Symfony 1.4.11. The
problem is generating when i want to add a new record.

*The error is : *
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a
child row: a foreign key constraint fails
(`tunisieautomoto`.`ville_translation`, CONSTRAINT
`ville_translation_id_ville_id` FOREIGN KEY (`id`) REFERENCES `ville` (`id`)
ON DELETE CASCADE ON UPDATE CASCADE)
*The Schema.YML :*

Ville:
  actAs:
    Timestampable: ~
    I18n:
      fields: [name, extra]
      actAs:
        Sluggable:
          fields: [name]
  columns:
    name:      { type: string(255), notnull: true }
    extra:     { type: string(255) }
    is_active: { type: boolean, default: 0 }

Kind Regards,

Oussama BEN BACCAR

-- 
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to