i have those two tables that both have the attribute `languagecode` and also both have the attribute `description_id`.
Now i want to get the related entries using the relations attribute of one of their models.
so in "relations()" in model1 i added:
'descriptionType' => array(
self::HAS_MANY,
'hotel_description_types',
'descriptiontype_id',
'condition'=>'hotel_description_types.languagecode=:lang',
'params' => array(':lang'=>'de'),
), ...Now yii tells me:
CDbCommand failed to execute the SQL statement: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'hotel_description_types.languagecode' in 'where clause'
... though it DOES exist in the Database! I tripple checked!
What could be the problem?

Help















