コード例 #1
0
ファイル: News.php プロジェクト: BoBRoID/new.k-z
 /**
  * @return ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(Comment::className(), ['newsID' => 'id']);
 }
コード例 #2
0
ファイル: Posts.php プロジェクト: asadovkamran/etap_backup
 public function getComment()
 {
     return $this->hasMany(Comment::className(), ['postId' => 'id']);
 }
コード例 #3
0
 public function getOrderDetailComment()
 {
     return $this->hasOne(Comment::className(), ['typeId' => 'id']);
 }