aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/GroupBundle/Entity/UserGroup.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/GroupBundle/Entity/UserGroup.php')
-rw-r--r--src/Wallabag/GroupBundle/Entity/UserGroup.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Wallabag/GroupBundle/Entity/UserGroup.php b/src/Wallabag/GroupBundle/Entity/UserGroup.php
index 22d1400a..0c40b0d3 100644
--- a/src/Wallabag/GroupBundle/Entity/UserGroup.php
+++ b/src/Wallabag/GroupBundle/Entity/UserGroup.php
@@ -3,15 +3,13 @@
3namespace Wallabag\GroupBundle\Entity; 3namespace Wallabag\GroupBundle\Entity;
4 4
5use Doctrine\ORM\Mapping as ORM; 5use Doctrine\ORM\Mapping as ORM;
6use FOS\UserBundle\Model\GroupInterface;
7use Symfony\Component\Validator\Constraints as Assert;
8use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; 6use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
9use Wallabag\UserBundle\Entity\User; 7use Wallabag\UserBundle\Entity\User;
10 8
11/** 9/**
12 * @ORM\Entity(repositoryClass="Wallabag\GroupBundle\Repository\UserGroupRepository") 10 * @ORM\Entity(repositoryClass="Wallabag\GroupBundle\Repository\UserGroupRepository")
13 * @UniqueEntity({"user_id", "group_id"}) 11 * @UniqueEntity({"user_id", "group_id"})
14 * @ORM\Table(name="fos_user_group") 12 * @ORM\Table(name="user_group")
15 */ 13 */
16class UserGroup 14class UserGroup
17{ 15{
@@ -52,7 +50,8 @@ class UserGroup
52 50
53 /** 51 /**
54 * UserGroup constructor. 52 * UserGroup constructor.
55 * @param User $user 53 *
54 * @param User $user
56 * @param Group $group 55 * @param Group $group
57 * @param $role 56 * @param $role
58 */ 57 */
@@ -90,11 +89,13 @@ class UserGroup
90 89
91 /** 90 /**
92 * @param int $role 91 * @param int $role
92 *
93 * @return UserGroup 93 * @return UserGroup
94 */ 94 */
95 public function setRole($role) 95 public function setRole($role)
96 { 96 {
97 $this->role = $role; 97 $this->role = $role;
98
98 return $this; 99 return $this;
99 } 100 }
100 101