Custom Inflections

I have an ‘Inmueble’ table with an ‘id_propietario’ fk; after generating the model I got this line:


'idPropietario' => array(self::BELONGS_TO, 'Propietario', 'id_propietario'),

Which leads to having to access the related object like this:


$propietario = $inmueble->idPropietario;

I also have a ‘unidads’ property when the correct would’ve been ‘unidades’.

Is there any way to customize the inflector?

I think you just need to manually update the model after you generate it.

I was afraid this was the only solution; thing is, I have quite a few models and not willing to edit every one.

Nonetheless, thanks for your answer :).