Example #1
0
 public function getComments()
 {
     return $this->hasMany(NewsComment::className(), ['news_id' => 'id']);
 }