<?php
namespace Platform\SecurityBundle\Entity\Access;
use Cms\CoreBundle\Model\RestoreInterface;
use Cms\CoreBundle\Model\RestoreTrait;
use Cms\TenantBundle\Entity\TenantedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class RoleRestore
* @package Platform\SecurityBundle\Entity\Access
*
* @ORM\Entity(
* repositoryClass = "Cms\ContainerBundle\Doctrine\ContainerRestoreRepository"
* )
* @ORM\Table(
* "cms__security__access__role_restore"
* )
*/
class RoleRestore extends TenantedEntity implements RestoreInterface
{
use RestoreTrait;
use RoleRestoreTrait;
/**
* @var Role
*
* @ORM\ManyToOne(
* targetEntity = "Platform\SecurityBundle\Entity\Access\Role"
* )
* @ORM\JoinColumn(
* name = "main",
* referencedColumnName = "id",
* onDelete = "CASCADE",
* nullable = false
* )
*/
protected $main;
}