コード例 #1
0
ファイル: Country.php プロジェクト: soanni/stocks_mvc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompanies()
 {
     return $this->hasMany(Companies::className(), ['countryid' => 'countryid']);
 }