|
@@ -9,7 +9,7 @@ use ApiPlatform\Metadata\Delete;
|
|
|
use ApiPlatform\Metadata\Put;
|
|
use ApiPlatform\Metadata\Put;
|
|
|
use ApiPlatform\Metadata\Get;
|
|
use ApiPlatform\Metadata\Get;
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
|
-use App\Annotation\OrganizationDefaultValue;
|
|
|
|
|
|
|
+use App\Attribute\OrganizationDefaultValue;
|
|
|
use App\Entity\Core\AddressPostal;
|
|
use App\Entity\Core\AddressPostal;
|
|
|
use App\Repository\Organization\OrganizationAddressPostalRepository;
|
|
use App\Repository\Organization\OrganizationAddressPostalRepository;
|
|
|
|
|
|
|
@@ -35,9 +35,9 @@ use App\Validator\Organization as OpentalentAssert;
|
|
|
),
|
|
),
|
|
|
new Post()
|
|
new Post()
|
|
|
],
|
|
],
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION\')',
|
|
|
|
|
|
|
+ normalizationContext: ['groups' => ['address']],
|
|
|
denormalizationContext: ['groups' => ['address']],
|
|
denormalizationContext: ['groups' => ['address']],
|
|
|
- normalizationContext: ['groups' => ['address']]
|
|
|
|
|
|
|
+ security: 'is_granted(\'ROLE_ORGANIZATION\')'
|
|
|
)]
|
|
)]
|
|
|
//#[Auditable]
|
|
//#[Auditable]
|
|
|
#[ORM\Entity(repositoryClass: OrganizationAddressPostalRepository::class)]
|
|
#[ORM\Entity(repositoryClass: OrganizationAddressPostalRepository::class)]
|