This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

i18n and object_select_tag

Notes and reports about symfony 1.0.x stable

i18n and object_select_tag

by fishlurch » Thu Jan 13, 2011 6:59 pm

Hi @ all,


next problem:

I use the i18n database style (with blabla and blabla_i18n tables). I want to read the entries names (which can be found in blabla_i18n) via blabla_names like that:

Code: Select all
object_select_tag($applicant_data, 'getVsapplNationalityId', array (
  'related_class' => 'Country',
  'control_name' => 'applicant_data[vsappl_nationality_id]',
  'peer_method' => 'doSelectOrderByCountryName',
  'include_blank' => true ...


-> vsappl_nationality_id is in the blabla_i18n table. Symfony drops the following error message:
[wrapped: Cannot fetch ColumnMap for undefined column: PR_COUNTRY_NAME].

I have added the following line into the matching Peer file:

Code: Select all
const PR_COUNTRY_NAME = 'param_countries.PR_COUNTRY_NAME';


Quesions: Are i18n tables connected in any case to the matching "blabla" table? Or are there any restrictions, which prevent the data to be acessed by the object_select_tag?

Thanks
Greez
fishlurch
Junior Member
 
Posts: 9
Joined: Mon Dec 06, 2010 8:47 pm