FIX: fails in CActiveRecords due to keyField.
FIX: bad variable definition