FOSElasticaBundle icon indicating copy to clipboard operation
FOSElasticaBundle copied to clipboard

Softdeletable with foselasticabundle

Open fldv opened this issue 5 years ago • 0 comments

I have a database, and I deleted a relationship via gedmo softdeletable.

I created the mapping, via the YAML file, and when I execute the following command fos:elastica:populate i get an error.

Entity of type 'App\Entity\B' for IDs id(X) was not found

Do you have a solution ?

fos_elastica.yaml

  clients:
    default: { url: '%env(ELASTICSEARCH_URL)%/' }

  indexes:
    app:
      types:
        A:
          properties:
            id: ~
            name: ~
            B:
              type: object
              id: ~
          persistence:
            driver: orm
            model: App\Entity\A

Thank you for your answers

fldv avatar Mar 06 '20 08:03 fldv