Hello symfony users,
I think I might have found a bug in Symfony, and I require your point
of view before a submit a bug entry.
The problem is about i18n forms in inherited doctrine models.
Let's pretend I've got this schema.yml :
<blockquote>
Article:
actAs:
Timestampable: ~
I18n:
fields: [ title, header, body ]
actAs:
Sluggable: { fields: [ title ], uniqueBy: [ lang, title ] }
columns:
title: { type: string(255), notnull: true }
header: { type: clob, notnull: true }
News:
inheritance:
extends: Article
type: concrete
columns:
body { type: clob, notnull: true }
Here's the inheritance schema that symfony generate :
NewsForm > BaseNewsForm > ArticleForm > BaseArticleForm >
BaseFormDoctrine
This seems correct to me, as I can configure all my Article related
forms in one place by tweaking the ArticleForm::configure function.
However, here's the i18n inheritance schema :
NewsTranslationForm > BaseNewsTranslationForm > BaseFormDoctrine
Here's my question : why doesn't the BaseNewsTranslationForm extends
ArticleTranslationForm ? I changed it manually, be it will be
overriden next time I build forms.
So, is this a normal behavior ? Could it be changed, and should I
submit a bug report ?
Thank you for reading,
regards,
Thibault Jouannic.
--
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en.