コード例 #1
0
ファイル: Test.php プロジェクト: paladin3895/plrs
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReportTests()
 {
     return $this->hasMany(ReportTest::className(), ['test_id' => 'id']);
 }
コード例 #2
0
ファイル: Report.php プロジェクト: paladin3895/plrs
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReportTests()
 {
     return $this->hasMany(\app\models\plrs\ReportTest::className(), ['report_id' => 'id']);
 }