TypesenseBundle icon indicating copy to clipboard operation
TypesenseBundle copied to clipboard

"Call to a member function __toString() on null"

Open syl20b opened this issue 3 years ago • 0 comments

Hello, Thank you for your work ;)

When I execute the bin/console typesense:import command, I've got the following error : Call to a member function __toString() on null

The publication attribute is nullable on my entity App\Entity\Article, and the field is declared as optional in my config.

Here is a part of my config :

acseo_typesense:
  collections:
    articles:
      entity: 'App\Entity\Article'
      fields:

        publication:
          name: publication
          type: object
          facet: true
          optional: true

Is that a desired behaviour, or did I miss something ?

Sylvain

syl20b avatar Apr 14 '22 09:04 syl20b