src/Entity/SonataMediaGalleryItem.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Sonata\MediaBundle\Entity\BaseGalleryItem;
  5. #[ORM\Entity]
  6. #[ORM\Table(name'media__gallery_item')]
  7. class SonataMediaGalleryItem extends BaseGalleryItem
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     protected ?int $id null;
  13.     public function getId(): ?int
  14.     {
  15.         return $this->id;
  16.     }
  17. }