Answers for "exclude if symfony jms"

PHP
0

exclude if symfony jms

<?php

class Person
{
    /**
     * @Type("array<Account>")
     */
    public $accounts;
}

/**
 * @Exclude(if="object.expired || !is_granted('view',object)")
 */
class Account
{
    /**
     * @Type("boolean")
     */
    public $expired;
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language