Fehlermeldung
CDbException Description CDbCommand failed to execute the SQL statement: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'drivers.id' in 'where clause'
$x = drivers::model()->tableSchema->getColumnNames(); Liefert mir [0] => id und [1] => baseform
Mein Aufruf
public function driversCars( $baseform )
{
return Drivers::model()->with(array('cars'))->find('drivers.id=?', array( $baseform ) );
}

Help














