Symfony\Validator
use Symfony\Component\Validator\Constraints as Assert;
- * @Assert\Choice(callback={"A", "getValues"}, strict=true)
+ * @Assert\Choice(callback={"B", "getValues"}, strict=true)
JMS\Serializer
use JMS\Serializer\Annotation as Serializer;
/**
- * @Serializer\Type("App\A")
+ * @Serializer\Type("App\B")
*/
private $some;
/**
- * @Serializer\Type("array<App\A>")
+ * @Serializer\Type("array<App\B>")
*/
private $arry = [];
Doctrine
/**
- * @ORM\OneToMany(targetEntity="A")
+ * @ORM\OneToMany(targetEntity="B")
*/
private $items;
Symfony\Validator
JMS\Serializer
use JMS\Serializer\Annotation as Serializer; /** - * @Serializer\Type("App\A") + * @Serializer\Type("App\B") */ private $some; /** - * @Serializer\Type("array<App\A>") + * @Serializer\Type("array<App\B>") */ private $arry = [];Doctrine