src/Application/Sonata/MediaBundle/Entity/Media.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\BaseMedia as BaseMedia;
  13. use App\Entity\SonataClassificationCategory as SonataClassificationCategory;
  14. /**
  15.  * This file has been generated by the Sonata EasyExtends bundle.
  16.  *
  17.  * @link https://sonata-project.org/bundles/easy-extends
  18.  *
  19.  * References :
  20.  *   working with object : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
  21.  *
  22.  * @author <yourname> <youremail>
  23.  */
  24. /**
  25.  * @ORM\Entity
  26.  * @ORM\Table(name="media__media")
  27.  */
  28. class Media extends BaseMedia
  29. {
  30.     /**
  31.      * @ORM\Id
  32.      * @ORM\GeneratedValue
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     protected $id;
  36.     /**
  37.      * @var SonataClassificationCategory|null
  38.      */
  39.     protected ?object $category null;
  40.     /**
  41.      * Get id
  42.      *
  43.      * @return int $id
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getCategory(): ?object
  50.     {
  51.         return $this->category;
  52.     }
  53.     public function setCategory(?object $category null): void
  54.     {
  55.         $this->category $category;
  56.     }
  57. }