/** * establish a relationship between this model and checklist model * @return mix */ public function getChecklist() { return $this->hasOne(Checklist::classname(), ['id' => 'checklists_id']); }