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