コード例 #1
0
ファイル: AttachmentType.php プロジェクト: raguila/islc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(Comments::className(), ['AttachmentTypeID' => 'AttachmentTypeID']);
 }
コード例 #2
0
ファイル: Apis.php プロジェクト: openi-ict/api-builder
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(Comments::className(), ['api' => 'id']);
 }
コード例 #3
0
ファイル: Posts.php プロジェクト: raguila/islc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(Comments::className(), ['PostID' => 'PostID']);
 }