/** * @return \yii\db\ActiveQuery */ public function getTestRecords() { return $this->hasMany(Records::className(), ['test_id' => 'id']); }