Open GoogleCodeExporter opened 9 years ago
I corrected this error by changing two things:
1 .- File YumTranslation.php changing the TableName function by:
public function tableName ()
{
if (isset (Yum:: module () -> translationTable))
$ this-> _tableName = Yum:: module () -> translationTable;
elseif (isset (Yii:: app () -> modules ['user'] ['translationTable']))
$ this-> _tableName = Yii:: app () -> modules ['user'] ['translationTable'];
else
$ this-> _tableName = '{{translation}}' / / fallback if nothing is in September
Yum return: resolveTableName ($ this-> _tableName, $ this-> getDbConnection ());
}
2 .- Yum.php file changing the line:
$ translationTable = Yum:: module () -> translationTable;
by
$ translationTable = YumTranslation:: model () -> tableName ();
Surely there is a more efficient way to do it but this has worked for me at my:)
regards
Original comment by a.tequ...@gmail.com
on 22 Sep 2011 at 7:24
I am getting this error during installation of this extension. Please help.
CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'testdrive.translation' doesn't exist. The SQL
statement executed was: select message, translation from translation where
language = :language and category = :category
Original comment by manishku...@gmail.com
on 4 Jun 2012 at 7:57
Original issue reported on code.google.com by
a.tequ...@gmail.com
on 22 Sep 2011 at 7:20