mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
AccompanyingPeriodResource: fix deserialization + code style
This commit is contained in:
@@ -20,6 +20,8 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* **About denormalization**: this operation is operated by @see{AccompanyingPeriodResourdeNormalizer}.
|
||||
*
|
||||
* @ORM\Entity
|
||||
* @ORM\Table(
|
||||
* name="chill_person_accompanying_period_resource",
|
||||
@@ -45,7 +47,7 @@ class Resource
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
* @Groups({"read", "write"})
|
||||
* @Groups({"read"})
|
||||
*/
|
||||
private ?string $comment = '';
|
||||
|
||||
@@ -93,7 +95,7 @@ class Resource
|
||||
|
||||
/**
|
||||
* @return Person|ThirdParty
|
||||
* @Groups({"read", "write"})
|
||||
* @Groups({"read"})
|
||||
*/
|
||||
public function getResource()
|
||||
{
|
||||
|
Reference in New Issue
Block a user