<?php
namespace Cms\WorkflowsBundle\Entity;
use Cms\TenantBundle\Entity\TenantedEntity;
use DateTime;
use Platform\SecurityBundle\Entity\Identity\Account;
use Doctrine\ORM\Mapping as ORM;
use Platform\SecurityBundle\Entity\Identity\Group;
/**
* Class WorkflowReviewer
* @package Cms\WorkflowsBundle\Entity
*
* @ORM\Entity(
* repositoryClass = "Cms\WorkflowsBundle\Doctrine\WorkflowReviewerRepository"
* )
* @ORM\Table(
* name = "cms__workflows_workflow_reviewer"
* )
*/
class WorkflowReviewer extends TenantedEntity {
/**
* @var WorkflowStage
*
* @ORM\ManyToOne(
* targetEntity = "Cms\WorkflowsBundle\Entity\WorkflowStage",
* )
* @ORM\JoinColumn(
* name = "stage",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $workflowStage;
/**
* @var WorkflowIdentity
*
* @ORM\ManyToOne(
* targetEntity = "Cms\WorkflowsBundle\Entity\WorkflowIdentity",
* )
* @ORM\JoinColumn(
* name = "workflowIdentity",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $workflowIdentity;
public function isGroup()
{
return $this->workflowIdentity->isGroupIdentity();
}
public function getIdentity()
{
return $this->workflowIdentity;
}
public function setIdentity($identity)
{
$this->workflowIdentity = $identity;
return $this;
}
public function setStage($stage)
{
$this->workflowStage = $stage;
return $this;
}
}