Hi,
I'm having problem with i18n records being saved into the db.
I have this schema:
Post:
connection: doctrine
tableName: post
actAs:
i18n:
fields: [title, content]
columns:
id:
type: integer(1)
primary: true
autoincrement: true
.
.
.
title:
type: string(255)
primary: false
notnull: false
autoincrement: false
content:
type: string()
primary: false
notnull: false
autoincrement: false
I'm using this in the form class
$this->embedI18n(array('en_EN', 'es_ES'));
$this->widgetSchema->setLabel('en_EN', 'English');
$this->widgetSchema->setLabel('es_ES', 'Español');
In this way the form is working and it saves to the database, this:
3
en
3 EN title en content en_EN
3 es title es content es_ES
The first row shouldn't be there, right? (this reflects in that I can't
get the title or the content when I do <?php echo $post->getTitle() ?>
for instance)
If I state:
$this->embedI18n(array('en', 'es'));
$this->widgetSchema->setLabel('en', 'English');
$this->widgetSchema->setLabel('es', 'Español');
I get an error saying:
Widget "en_EN" does not exist.
can anyone help on this? May be some misconfiguration?
thanks
Gabriel
--
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 [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