src/Cms/WorkflowsBundle/Entity/Identity/Individual.php line 19

Open in your IDE?
  1. <?php
  2. namespace Cms\WorkflowsBundle\Entity\Identity;
  3. use Cms\WorkflowsBundle\Entity\WorkflowIdentity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Platform\SecurityBundle\Entity\Identity\Account;
  6. /**
  7.  * Class Individual
  8.  * @package Cms\WorkflowsBundle\Entity\Identity
  9.  *
  10.  * @ORM\Entity(
  11.  *     repositoryClass = "Cms\WorkflowsBundle\Doctrine\Identity\WorkflowIndividualRepository"
  12.  * )
  13.  *
  14.  * @ORM\Table(
  15.  *     name = "cms__workflows_identity_individual"
  16.  * )
  17.  */
  18. class Individual extends WorkflowIdentity {
  19.     protected $identityType WorkflowIdentity::IDENTITY_TYPES__INDIVIDUAL;
  20.     /**
  21.      * @var Account
  22.      *
  23.      * @ORM\OneToOne(
  24.      *     targetEntity = "Platform\SecurityBundle\Entity\Identity\Account",
  25.      * )
  26.      * @ORM\JoinColumn(
  27.      *     name = "account",
  28.      *     referencedColumnName = "id",
  29.      *     onDelete = "SET NULL"
  30.      * )
  31.      */
  32.     protected $account;
  33.     /**
  34.      * @return Account
  35.      */
  36.     public function getAccount()
  37.     {
  38.         return $this->account;
  39.     }
  40. }