Ticket #1051 (closed defect: fixed)
i18n data fixtures - language 0
| Reported by: | colnector | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.11.0 |
| Component: | Data Fixtures | Version: | 0.11.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description (last modified by colnector) (diff)
Consider the following data fixture:
MyClass:
some_row:
id: 10
Translation:
0:
name: Phone cards
It will raise the error below. If the value 0 is changed to another number (I'm using an integer for the language indicator) it'll work fine.
[sfException]
Invalid row key specified: Array
#0 C:colnectpluginssfDoctrinePLuginlibdoctrineDoctrineCli.php(88): Doct
rine_Cli->_run(Array)
#1 C:colnectpluginssfDoctrinePLugindata askssfPakeDoctrine.php(742): Doc
trine_Cli->run(Array)
#2 C:colnectpluginssfDoctrinePLugindata askssfPakeDoctrine.php(205): _ca
ll_doctrine_cli('load-data', Array)
#3 C:colnectpluginssfDoctrinePLugindata askssfPakeDoctrine.php(330): run
_doctrine_load_data(Object(pakeTask), Array)
#4 [internal function]: run_doctrine_build_all_reload(Object(pakeTask), Array,
Array)
#5 C:wampinphpphp5.2.5PEARsymfonyvendorpakepakeTask.class.php(218):
call_user_func_array('run_doctrine_bu...', Array)
#6 C:wampinphpphp5.2.5PEARsymfonyvendorpakepakeTask.class.php(181):
pakeTask->execute(Array, Array)
#7 C:wampinphpphp5.2.5PEARsymfonyvendorpakepakeApp.class.php(175): p
akeTask->invoke(Array, Array)
#8 C:wampinphpphp5.2.5PEARdatasymfonyinsymfony.php(174): pakeApp->r
un(NULL, NULL, false)
#9 C:colnectsymfony(14): include('C:wampinphp...')
#10 {main}
Change History
Note: See
TracTickets for help on using
tickets.