src/Application/Sonata/MediaBundle/Entity/GalleryItem.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * This file is part of the <name> project.
  4.  *
  5.  * (c) <yourname> <youremail>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace App\Application\Sonata\MediaBundle\Entity;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Sonata\MediaBundle\Entity\BaseGalleryItem as BaseGalleryItem;
  13. /**
  14.  * @ORM\Entity
  15.  * @ORM\Table(name="media__gallery_item")
  16.  */
  17. class GalleryItem extends BaseGalleryItem
  18. {
  19.     /**
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     protected $id;
  25.     public function toString()
  26.     {
  27.         return $this->getId();
  28.     }
  29.     /**
  30.      * Get id
  31.      *
  32.      * @return int $id
  33.      */
  34.     public function getId()
  35.     {
  36.         return $this->id;
  37.     }
  38. }