Example #1
0
 /**
  * establish 1-n relationship between this model and checklist model
  * @return [type] [description]
  */
 public function getChecklist()
 {
     return $this->hasOne(Checklist::className(), ['id' => 'checklists_id']);
 }