<?php
namespace Platform\SecurityBundle\Entity\Access\RoleAssociation;
use Platform\SecurityBundle\Entity\Identity\Group;
use Platform\SecurityBundle\Entity\Access\RoleAssociation;
use Doctrine\ORM\Mapping as ORM;
/**
* Class GroupRoleAssociation
* @package Platform\SecurityBundle\Entity\Access\RoleAssociation
*
* @ORM\Entity(
* repositoryClass = "Platform\SecurityBundle\Doctrine\Access\RoleAssociation\GroupRoleAssociationRepository"
* )
*/
class GroupRoleAssociation extends RoleAssociation
{
/**
* @var Group
*
* @ORM\ManyToOne(
* targetEntity = "Platform\SecurityBundle\Entity\Identity\Group",
* inversedBy = "roles"
* )
* @ORM\JoinColumn(
* name = "grp",
* referencedColumnName = "id",
* onDelete = "CASCADE"
* )
*/
protected $group;
/**
* @return Group
*/
public function getGroup()
{
return $this->group;
}
/**
* @param Group $value
* @return $this
*/
public function setGroup(Group $value)
{
$this->group = $value;
return $this;
}
}