function init(){ parent::init(); $this->addField('job_count') ->datatype('int') ->calculated(true); $this->addCondition('job_count>',0); }