src/Cms/ContainerBundle/Entity/ContainerRestore.php line 21

Open in your IDE?
  1. <?php
  2. namespace Cms\ContainerBundle\Entity;
  3. use Cms\CoreBundle\Model\RestoreInterface;
  4. use Cms\CoreBundle\Model\RestoreTrait;
  5. use Cms\TenantBundle\Entity\TenantedEntity;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Class ContainerRestore
  9.  * @package Cms\ContainerBundle\Entity
  10.  *
  11.  * @ORM\Entity(
  12.  *  repositoryClass = "Cms\ContainerBundle\Doctrine\ContainerRestoreRepository"
  13.  * )
  14.  * @ORM\Table(
  15.  *  "cms__container__container_restore"
  16.  * )
  17.  */
  18. class ContainerRestore extends TenantedEntity implements RestoreInterface
  19. {
  20.     use RestoreTrait;
  21.     use ContainerRestoreTrait;
  22.     
  23.     /**
  24.      * @var Container
  25.      *
  26.      * @ORM\ManyToOne(
  27.      *     targetEntity = "Cms\ContainerBundle\Entity\Container"
  28.      * )
  29.      * @ORM\JoinColumn(
  30.      *     name = "main",
  31.      *     referencedColumnName = "id",
  32.      *     onDelete = "CASCADE",
  33.      *     nullable = false
  34.      * )
  35.      */
  36.     protected $main;
  37. }