Skip to content

Conversation

@welcoMattic
Copy link
Contributor

@welcoMattic welcoMattic commented Oct 21, 2024

In case of TypeError exception is thrown by Automapper::map call, the indexation will not be stopped. Instead the command will display this king of error message

Error while mapping App\Entity\Taxonomy\Taxon (id: 1): 
MonsieurBiz\SyliusSearchPlugin\Generated\Model\TaxonDTO::setName(): 
Argument #1 ($name) must be of type string, null given [...]

@welcoMattic welcoMattic force-pushed the fix/automapper-type-error-handling branch from 2e80b81 to 6d0c77f Compare October 21, 2024 09:44
@maximehuran maximehuran merged commit 3423cda into master Oct 21, 2024
12 checks passed
@maximehuran maximehuran deleted the fix/automapper-type-error-handling branch October 21, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants