'states' => array(self::HAS_ONE, 'ReservaState', 'id'), // use your fk
'reservas' => array(self::HAS_MANY,'Reserva','reserva_state') // same here use your fk
if you can upload your database schema then i might be able to tell you what exactly to change
By the way, lets say if i want to relate to another model/table that is not directly related. ex: relate to owner that have a relation with house that have a relation to reserva.