| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- declare (strict_types=1);
- namespace App\Entity\Core;
- use ApiPlatform\Metadata\GetCollection;
- use ApiPlatform\Metadata\Get;
- use ApiPlatform\Metadata\ApiResource;
- use App\Entity\Access\Access;
- use App\Entity\Organization\Organization;
- use App\Repository\Core\NotificationRepository;
- //use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use JetBrains\PhpStorm\Pure;
- use Symfony\Component\Validator\Constraints as Assert;
- use App\Enum\Core\NotificationTypeEnum;
- use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
- use Symfony\Component\Serializer\Annotation\Context;
- /**
- * @todo : A la suite de la migration, il faut supprimer le nom de la table pour avoir une table Notification, et supprimer l'attribut discr.
- *
- * Notification à un utilisateur
- *
- * Security :
- * * @see App\Doctrine\Core\CurrentUserNotificationExtension
- */
- #[ApiResource(
- operations: [
- new Get(),
- new GetCollection(
- paginationMaximumItemsPerPage: 20,
- paginationClientItemsPerPage: true,
- order: ['id' => 'DESC']
- )
- ]
- )]
- //#[Auditable]
- #[ORM\Entity(repositoryClass: NotificationRepository::class)]
- class Notification extends AbstractInformation
- {
- }
|