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