コード例 #1
0
ファイル: User.php プロジェクト: Acker2015/CustomizeLife
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAppcomments()
 {
     return $this->hasMany(Appcomments::className(), ['userid' => 'id']);
 }