Add group serializer

This commit is contained in:
2019-07-17 14:41:35 +02:00
parent 8f70911b2e
commit 3e2827d624
2 changed files with 6 additions and 0 deletions
@@ -212,6 +212,8 @@ class Ad
* @var string
*
* @ORM\Column(name="emphasis", type="boolean", options={"comment":"A la une"}, nullable=true)
*
* @Groups({"company_list"})
*/
private $emphasis;
@@ -100,6 +100,8 @@ class Company
* @var string
*
* @ORM\Column(name="website", type="string", nullable=true)
*
* @Groups({"company_detail"})
*/
private $website;
@@ -195,6 +197,8 @@ class Company
/**
* @Groups({"company_detail", "company_list"})
* @Accessor(getter="getCountPublishedAds")
*
* @Groups({"ad_list", "company_list"})
*/
private $countAds;