/** * override load function */ public function load($filter = '') { $this->select('id, title, begin, deadline, start, stop, status, archived, ' . 'CEIL(spent/60) as spent'); $this->from('task'); $this->leftJoin('timer', 'task.id=timer.task_id'); return parent::load($filter, false); }