src/Cms/ModuleBundle/Entity/ModuleSettings.php line 15

Open in your IDE?
  1. <?php
  2. namespace Cms\ModuleBundle\Entity;
  3. use Cms\ContainerBundle\Entity\Container;
  4. use Cms\TenantBundle\Entity\TenantedEntity;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Class ModuleSettings
  8.  * @package Cms\ModuleBundle\Entity
  9.  *
  10.  * @ORM\MappedSuperclass
  11.  */
  12. abstract class ModuleSettings extends TenantedEntity
  13. {
  14.     /**
  15.      * The department/container for which these module settings apply to.
  16.      *
  17.      * @var Container
  18.      *
  19.      * @ORM\ManyToOne(
  20.      *  targetEntity = "Cms\ContainerBundle\Entity\Container"
  21.      * )
  22.      * @ORM\JoinColumn(
  23.      *  name = "container",
  24.      *  referencedColumnName = "id",
  25.      *  onDelete = "CASCADE"
  26.      * )
  27.      */
  28.     protected $container null;
  29.     /**
  30.      * @return Container
  31.      */
  32.     public function getContainer()
  33.     {
  34.         return $this->container;
  35.     }
  36.     /**
  37.      * @param Container $value
  38.      * @return $this
  39.      */
  40.     public function setContainer(Container $value)
  41.     {
  42.         $this->container $value;
  43.         return $this;
  44.     }
  45. }