<?php
namespace Cms\Modules\GalleryBundle\Entity\Gallery;
use Cms\ModuleBundle\Entity\Draft;
use Cms\Modules\GalleryBundle\Model\Gallery\GalleryData;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class GalleryDraft
* @package Cms\Modules\GalleryBundle\Entity\Gallery
*
* @property GalleryProxy $proxy
* @property ArrayCollection|GalleryRevision[] $revisions
* @property GalleryRevision $revision
* @property GalleryData $data
*
* @method GalleryProxy getProxy()
* @method ArrayCollection|GalleryRevision[] getRevisions()
* @method GalleryRevision getRevision()
* @method GalleryData getData()
* @method GalleryDraft setProxy(GalleryProxy $value)
* @method GalleryDraft setRevision(GalleryRevision $value)
* @method GalleryDraft setData(GalleryData $value)
*
* @ORM\Entity
*/
class GalleryDraft extends Draft
{
const TYPE = 'Gallery';
const LOCKABLE_TYPE = 'gallery_draft';
use GalleryDataTrait;
/**
* {@inheritdoc}
*/
public function getDraftTitle()
{
return $this->getData()->getTitle();
}
}