src/Application/Sonata/MediaBundle/Entity/Gallery.php line 30

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\BaseGallery as BaseGallery;
  13. /**
  14.  * This file has been generated by the Sonata EasyExtends bundle.
  15.  *
  16.  * @link https://sonata-project.org/bundles/easy-extends
  17.  *
  18.  * References :
  19.  *   working with object : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
  20.  *
  21.  * @author <yourname> <youremail>
  22.  */
  23. /**
  24.  * @ORM\Entity
  25.  * @ORM\Table(name="media__gallery")
  26.  */
  27. class Gallery extends BaseGallery
  28. {
  29.     /**
  30.      * @ORM\Id
  31.      * @ORM\GeneratedValue
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     protected $id;
  35.     public function toString()
  36.     {
  37.         return $this->getId();
  38.     }
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return int $id
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48. }