We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new StopOnError([ new Required(), static function (mixed $value, Callback $rule, ValidationContext $context) { $id = $context->getDataSet()->getAttributeValue('product_id'); // $id is null } ])
can't get product_id value
Get product_id value
Remove StopOnError
The text was updated successfully, but these errors were encountered:
In this case scope will be property value that validated by StopOnError. Use $context->getGlobalDataSet() to access all data.
StopOnError
$context->getGlobalDataSet()
Sorry, something went wrong.
No branches or pull requests
What steps will reproduce the problem?
can't get product_id value
What is the expected result?
Get product_id value
What do you get instead?
Remove StopOnError
The text was updated successfully, but these errors were encountered: