mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
addresses: enable POSTing Postal Code entities (back + front)
This commit is contained in:
@@ -26,7 +26,7 @@ class PostalCode
|
||||
* @ORM\Id
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
* @groups({"read"})
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
private $id;
|
||||
|
||||
@@ -34,7 +34,7 @@ class PostalCode
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=255, name="label")
|
||||
* @groups({"read"})
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
private $name;
|
||||
|
||||
@@ -42,7 +42,7 @@ class PostalCode
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=100)
|
||||
* @groups({"read"})
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
private $code;
|
||||
|
||||
@@ -50,7 +50,7 @@ class PostalCode
|
||||
* @var Country
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Country")
|
||||
* @groups({"read"})
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
private $country;
|
||||
|
||||
|
Reference in New Issue
Block a user