Hi at all,
    i had a problem with the i18n feature, i'm using Propel 1.2 and 
Symfony 1.0.11. The thing is, i have a table "users" and "users_i18n", 
the schema looks like
users:
    _attributes:
      idMethod: native
      isI18n: true
      i18nTable: users_i18n
   id:
      type: INTEGER
      required: true
      autoIncrement: true
      primaryKey: true
users_i18n:
    user_id:
      type: INTEGER
      required: true
      primaryKey: true
      default:
      foreignTable: users
      foreignReference: id
      onDelete: RESTRICT
      onUpdate: RESTRICT
    language:
      isCulture: true
      type: VARCHAR
      size: 7
      required: true
      primaryKey: true
      default:

well as you see, in the table users_i18n i've a primary with 2 fields 
(user_id, language), well the problem is when i want update a record 
from this table
if i do

$user = UserI18nPeer::retrieveByPk(1,'en');
$user->setLanguage('fr');
$user->save();

The SQL generated is UPDATE users_i18n SET LANGUAGE = 'fr' WHERE 
users_i18n.USER_ID=1 AND users_i18n.LANGUAGE='fr' that's wrong, cause
the condition its not like should be, it should be WHERE 
users_i18n.USER_ID=1 AND users_i18n.LANGUAGE='en'

I hope you understand

Thanks
Regards
CZ



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

Reply via email to