i am recently porting my application to Yii Framework, and i have a question about the models, situation as below:
i have a table name "company" which to store information about company e.g id, name, description .etc
but in my table i do append "company_" to each column, e.g. id => company_id, name => company_name
so for now, i use the model generated by "yiic shell", if i wan to get the company name, i have to do like $company->company_name, instead of $company->name
is there any method to set the the attribute "name" match to "company_name" in the database tables?
is there any build in function like the attributeLables to customized so that we do not need to write a getter/setter function to match each column we wanted?