id; } /** * @var KekRozsak\SecurityBundle\Entity\User $user * @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User", inversedBy="groups") * @ORM\JoinColumn(name="user_id") */ protected $user; /** * Set user * * @param KekRozsak\SecurityBundle\Entity\User $user * @return UserGroupMembership */ public function setUser(\KekRozsak\SecurityBundle\Entity\User $user) { $this->user = $user; return $this; } /** * Get user * * @return KekRozsak\SecurityBundle\Entity\User */ public function getUser() { return $this->user; } /** * @var KekRozsak\FrontBundle\Entity\Group * @ORM\ManyToOne(targetEntity="Group", inversedBy="members") * @ORM\JoinColumn(name="group_id") */ protected $group; /** * Set group * * @param KekRozsak\FrontBundle\Entity\Group * @return UserGroupMembership */ public function setGroup(\KekRozsak\FrontBundle\Entity\Group $group) { $this->group = $group; return $this; } /** * Get group * * @return KekRozsak\FrontBundle\Entity\Group */ public function getGroup() { return $this->group; } }