<?php
namespace Cms\WorkflowsBundle\Entity;
use Cms\ContainerBundle\Entity\Container;
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 WorkflowEnforcement
* @package Cms\WorkflowsBundle\Entity
*
* @ORM\Entity(
* repositoryClass = "Cms\WorkflowsBundle\Doctrine\WorkflowEnforcementRepository"
* )
* @ORM\Table(
* name = "cms__workflows_workflow_enforcement"
* )
*/
class WorkflowEnforcement extends TenantedEntity {
/**
* @var Workflow
*
* @ORM\ManyToOne(
* targetEntity = "Cms\WorkflowsBundle\Entity\Workflow",
* )
* @ORM\JoinColumn(
* name = "submission",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $workflow;
/**
* @var WorkflowIdentity
*
* @ORM\ManyToOne(
* targetEntity = "Cms\WorkflowsBundle\Entity\WorkflowIdentity",
* )
* @ORM\JoinColumn(
* name = "workflowIdentity",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $workflowIdentity;
/**
* @var Container
*
* @ORM\ManyToOne(
* targetEntity = "Cms\ContainerBundle\Entity\Container",
* )
* @ORM\JoinColumn(
* name = "container",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $container;
/**
* @return Workflow
*/
public function getWorkflow() {
return $this->workflow;
}
/**
* @return Container
*/
public function getWorkflowDepartment() {
return $this->container;
}
public function setWorkflow($workflow)
{
$this->workflow = $workflow;
return $this;
}
public function setDepartment($department)
{
$this->container = $department;
return $this;
}
}