src/Platform/SecurityBundle/Entity/Access/RoleRestore.php line 21

Open in your IDE?
  1. <?php
  2. namespace Platform\SecurityBundle\Entity\Access;
  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 RoleRestore
  9.  * @package Platform\SecurityBundle\Entity\Access
  10.  *
  11.  * @ORM\Entity(
  12.  *  repositoryClass = "Cms\ContainerBundle\Doctrine\ContainerRestoreRepository"
  13.  * )
  14.  * @ORM\Table(
  15.  *  "cms__security__access__role_restore"
  16.  * )
  17.  */
  18. class RoleRestore extends TenantedEntity implements RestoreInterface
  19. {
  20.     use RestoreTrait;
  21.     use RoleRestoreTrait;
  22.     /**
  23.      * @var Role
  24.      *
  25.      * @ORM\ManyToOne(
  26.      *     targetEntity = "Platform\SecurityBundle\Entity\Access\Role"
  27.      * )
  28.      * @ORM\JoinColumn(
  29.      *     name = "main",
  30.      *     referencedColumnName = "id",
  31.      *     onDelete = "CASCADE",
  32.      *     nullable = false
  33.      * )
  34.      */
  35.     protected $main;
  36. }