/** * @return \yii\db\ActiveQuery */ public function getControlExistencia() { return $this->hasOne(ControlExistencia::className(), ['id' => 'control_existencia_id']); }
/** * @return \yii\db\ActiveQuery */ public function getControlExistencias() { return $this->hasMany(ControlExistencia::className(), ['sede_id' => 'id']); }