src/Entity/SonataMediaGallery.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Sonata\MediaBundle\Entity\BaseGallery;
  5. #[ORM\Entity]
  6. #[ORM\Table(name"gallery")]
  7. /*
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="media__gallery")
  10.  */
  11. class SonataMediaGallery extends BaseGallery
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     /*
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     protected ?int $id null;
  22.     public function getId()
  23.     {
  24.         return $this->id;
  25.     }
  26. }