mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 06:26:22 +00:00
587 B
587 B
id | title |
---|---|
3a90ffd1-7d51-4ade-ad6e-8924c15d956d | ExpressionLanguageSyntax Constraint |
Description
Checks that passed expression language is valid.
Syntax
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
class Order
{
/**
* @Assert\ExpressionLanguageSyntax()
*/
protected $promotion;
/**
* @Assert\ExpressionLanguageSyntax(
* names = ['user', 'shipping_centers'],
* validateNames = true
* )
*/
protected $shippingOptions;
}