ongr-io / ElasticsearchBundle

Symfony bundle for Elasticsearch with steroids
MIT License
313 stars 189 forks source link

Installing with Sylius fails #942

Open euperia opened 4 years ago

euperia commented 4 years ago

I'm trying to use this with Sylius (Symfony based ecommerce platform) and get the following error when running bin/console cache:clear:

⇒  composer require ongr/elasticsearch-bundle "~7.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
  - Installing react/promise (v2.8.0): Loading from cache

... etc

Symfony operations: 1 recipe (31555c9eb44d1c01bf9a5024f25a623c)
  - Configuring ongr/elasticsearch-bundle (>=v7.0.2): From auto-generated recipe
phpstan/extension-installer: Extensions installed
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!
!!  In MappingPass.php line 65:
!!
!!    Class DoctrineMigrations\Version20190109095211 does not exist
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

Installation failed, reverting ./composer.json to its original content.
- PHP version: 7.4
- Elasticsearch version: 7.7.0
- Bundle version
- Symfony version: 4
- Sylius: 1.7.0
mjvanmiddelaar commented 4 years ago

See https://github.com/ongr-io/ElasticsearchBundle/pull/958 I think your issue is related.