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