diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-06 20:21:49 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 09:18:39 +0200 |
commit | f1900b686eb8d7c41a940eede778234ac55086e1 (patch) | |
tree | 3282794540fceaecc831fc9c736cecc57dbc1728 /src/Wallabag/UserBundle/Entity/User.php | |
parent | 29714661b1df78871ceaf0e079f11041a8641d4b (diff) | |
download | wallabag-f1900b686eb8d7c41a940eede778234ac55086e1.tar.gz wallabag-f1900b686eb8d7c41a940eede778234ac55086e1.tar.zst wallabag-f1900b686eb8d7c41a940eede778234ac55086e1.zip |
Added migration for user group
Just a first draft of #805
Diffstat (limited to 'src/Wallabag/UserBundle/Entity/User.php')
-rw-r--r-- | src/Wallabag/UserBundle/Entity/User.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index aba76ca7..781f7b03 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php | |||
@@ -98,8 +98,16 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
98 | private $authCode; | 98 | private $authCode; |
99 | 99 | ||
100 | /** | 100 | /** |
101 | * @var bool | 101 | * @ORM\ManyToMany(targetEntity="Wallabag\UserBundle\Entity\Group") |
102 | * | 102 | * @ORM\JoinTable(name="user_group", |
103 | * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, | ||
104 | * inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")} | ||
105 | * ) | ||
106 | */ | ||
107 | protected $groups; | ||
108 | |||
109 | /** | ||
110 | * @var bool Enabled yes/no | ||
103 | * @ORM\Column(type="boolean") | 111 | * @ORM\Column(type="boolean") |
104 | */ | 112 | */ |
105 | private $twoFactorAuthentication = false; | 113 | private $twoFactorAuthentication = false; |