예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(Comments::className(), ['AttachmentTypeID' => 'AttachmentTypeID']);
 }
예제 #2
0
 /**
  * @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']);
 }