Skip to content

Rename class should include Symfony\Validator and Serializer annotations #1872

@TomasVotruba

Description

@TomasVotruba

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;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions