<?php
namespace Platform\SecurityBundle\Entity\Access\RoleAssociation;
use Cms\ImportBundle\Model\Interfaces\Importable\ImportableInterface;
use Cms\ImportBundle\Model\Interfaces\Importable\ImportableTrait;
use Platform\SecurityBundle\Entity\Identity\Account;
use Platform\SecurityBundle\Entity\Access\RoleAssociation;
use Doctrine\ORM\Mapping as ORM;
/**
* Class AccountRoleAssociation
* @package Platform\SecurityBundle\Entity\Access\RoleAssociation
*
* @ORM\Entity(
* repositoryClass = "Platform\SecurityBundle\Doctrine\Access\RoleAssociation\AccountRoleAssociationRepository"
* )
*/
class AccountRoleAssociation extends RoleAssociation implements ImportableInterface
{
use ImportableTrait;
/**
* @var Account
*
* @ORM\ManyToOne(targetEntity = "Platform\SecurityBundle\Entity\Identity\Account", inversedBy = "accountRoles")
* @ORM\JoinColumn(name = "account", referencedColumnName = "id", onDelete = "CASCADE")
*/
protected $account;
/**
* @return Account
*/
public function getAccount()
{
return $this->account;
}
/**
* @param Account $value
* @return $this
*/
public function setAccount(Account $value)
{
$this->account = $value;
return $this;
}
}