/** * @return \yii\db\ActiveQuery */ public function getScanner() { return $this->hasOne(Scanner::className(), ['id' => 'scanner_id']); }