<?php
namespace Cms\WorkflowsBundle\Entity\Identity;
use Cms\WorkflowsBundle\Entity\WorkflowIdentity;
use Doctrine\ORM\Mapping as ORM;
use Platform\SecurityBundle\Entity\Identity\Account;
/**
* Class Individual
* @package Cms\WorkflowsBundle\Entity\Identity
*
* @ORM\Entity(
* repositoryClass = "Cms\WorkflowsBundle\Doctrine\Identity\WorkflowIndividualRepository"
* )
*
* @ORM\Table(
* name = "cms__workflows_identity_individual"
* )
*/
class Individual extends WorkflowIdentity {
protected $identityType = WorkflowIdentity::IDENTITY_TYPES__INDIVIDUAL;
/**
* @var Account
*
* @ORM\OneToOne(
* targetEntity = "Platform\SecurityBundle\Entity\Identity\Account",
* )
* @ORM\JoinColumn(
* name = "account",
* referencedColumnName = "id",
* onDelete = "SET NULL"
* )
*/
protected $account;
/**
* @return Account
*/
public function getAccount()
{
return $this->account;
}
}