/** * @return ActiveQuery */ public function getComments() { return $this->hasMany(Comment::className(), ['newsID' => 'id']); }
public function getComment() { return $this->hasMany(Comment::className(), ['postId' => 'id']); }
public function getOrderDetailComment() { return $this->hasOne(Comment::className(), ['typeId' => 'id']); }