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