<?php
namespace Cms\Modules\QuestionBundle\Entity\Entry;
use Cms\ModuleBundle\Entity\Draft;
use Cms\Modules\QuestionBundle\Model\Entry\EntryData;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class PostDraft
* @package Cms\Modules\QuestionBundle\Entity\Entry
*
* @property EntryProxy $proxy
* @property ArrayCollection|EntryRevision[] $revisions
* @property EntryRevision $revision
* @property EntryData $data
*
* @method EntryProxy getProxy()
* @method ArrayCollection|EntryRevision[] getRevisions()
* @method EntryRevision getRevision()
* @method EntryData getData()
* @method EntryDraft setProxy(EntryProxy $value)
* @method EntryDraft setRevision(EntryRevision $value)
* @method EntryDraft setData(EntryData $value)
*
* @ORM\Entity
*/
class EntryDraft extends Draft
{
const TYPE = 'Entry';
const LOCKABLE_TYPE = 'question_draft';
use EntryDataTrait;
/**
* {@inheritdoc}
*/
public function getDraftTitle()
{
return $this->getData()->getTitle();
}
}