diff options
Diffstat (limited to 'src/Wallabag/GroupBundle/Entity/UserGroup.php')
-rw-r--r-- | src/Wallabag/GroupBundle/Entity/UserGroup.php | 9 |
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 @@ | |||
3 | namespace Wallabag\GroupBundle\Entity; | 3 | namespace Wallabag\GroupBundle\Entity; |
4 | 4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use FOS\UserBundle\Model\GroupInterface; | ||
7 | use Symfony\Component\Validator\Constraints as Assert; | ||
8 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | 6 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
9 | use Wallabag\UserBundle\Entity\User; | 7 | use 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 | */ |
16 | class UserGroup | 14 | class 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 | ||