monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

Use DTO ID to be able to have custom IDs #178

Closed maximehuran closed 1 year ago

maximehuran commented 1 year ago

Be able to use custom method in DTO like :

    public function getId(): string
    {
        return sprintf('%s_%s', $this->getType(), $this->getObjectId());
    }

We not break the default behaviour :

image

And user be able to customize their DTO IDs