Open MiguelAdige opened 1 month ago
I have a liveprop tags property with the url attribute when the parameter is empty in the url reload or directly access the url I get a violation of a constraint "The selected choice is invalid." except when the tag parameter is absent.
So this error is trigger by the controller and not the LiveComponent, right ?
Hello, this error is triggered by LiveComponent. It was later that I retrieved the url parameter to see if it wasn't there and I didn't figure out how to get around the problem.
Could you open the smallest/simplest reproducer possible.. so we can look at this ?
Hello, I'm developing a search engine with Symfony Forms and Live components, I have a liveprop tags property with the url attribute when the parameter is empty in the url reload or directly access the url I get a violation of a constraint "The selected choice is invalid." except when the tag parameter is absent.
I think this is a bug we shouldn't do a data transformation if the parameter is empty.
PHP Version : 8.3 Symfony version : 6.4 symfony/ux-live-component : 2.18.1 symfony/form : 6.4.10
SearchLiveComponent.php
Class form SearchFormType.php
Class entity SearchData.php
Class controller SearchController.php