src/Entity/SonataMediaGallery.php line 15

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