Salem Khaled,

Merci  bien pour votre réponse.

En fait,  j'ai ajouté la méthode "embedForm('villeTranslation', new
VilleTranslationForm())" au formulaire "villeForm". Mais cette embedForm()
affiche l'erreur décrit ci-dessous.

Merci d'avance.


2011/10/26 khaled khaled <rahalkhale...@gmail.com>

> salam oussama je croit que Tu doit redefinir le methode save,delete dans la
> classe model de votre table pour qu'il puisse connaitre le nouveau table
> cree par I18n " ville_translation"  je crois tu doit utliser left join
> dans ta requete .
> Bon Travail s'il ya d'avance contacter moi .
>
> 2011/10/26 oussama BEN BACCAR <oussama.benbac...@gmail.com>
>
>> 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 symfony-devs@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-devs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-devs?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 developers" group.
> To post to this group, send email to symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to