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;
}