/** * @return \yii\db\ActiveQuery */ public function getComments() { return $this->hasMany(Comments::className(), ['AttachmentTypeID' => 'AttachmentTypeID']); }
/** * @return \yii\db\ActiveQuery */ public function getComments() { return $this->hasMany(Comments::className(), ['api' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getComments() { return $this->hasMany(Comments::className(), ['PostID' => 'PostID']); }