Getter function not working from extended Class of the Model

Hello. I have this classes:

class Jobs extends BaseJobs


class JobsAnalysis extends Jobs

I have this getter function:

public function getWorkedHours() {

I have a index page with a GridView accessing JobsAnalysis model.

When I define the getter function in Jobs worked, but when I put it in JobsAnalysis didn’t work.


Sorry, in the Index page I was not using ‘JobAnalysis’ class (I was using ‘Job’), and then this issue.