controller return json to vue via twig, corrections

This commit is contained in:
2021-05-27 18:41:22 +02:00
parent 65ac9a47b4
commit 9ec2a62fb6
4 changed files with 11 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ use Chill\MainBundle\Entity\HasScopeInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use Chill\MainBundle\Validator\Constraints\Entity\UserCircleConsistency;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Class Activity
@@ -61,6 +62,7 @@ class Activity implements HasCenterInterface, HasScopeInterface
* @ORM\Id
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* @Groups({"read"})
*/
private ?int $id;
@@ -121,11 +123,13 @@ class Activity implements HasCenterInterface, HasScopeInterface
/**
* @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\Person")
* @Groups({"read"})
*/
private Collection $persons;
/**
* @ORM\ManyToMany(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
* @Groups({"read"})
*/
private Collection $thirdParties;
@@ -136,6 +140,7 @@ class Activity implements HasCenterInterface, HasScopeInterface
/**
* @ORM\ManyToMany(targetEntity="Chill\MainBundle\Entity\User")
* @Groups({"read"})
*/
private Collection $users;