diff options
Diffstat (limited to 'src/Wallabag/UserBundle/Entity/User.php')
-rw-r--r-- | src/Wallabag/UserBundle/Entity/User.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index e3b9a519..e6528420 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php | |||
@@ -13,7 +13,6 @@ use JMS\Serializer\Annotation\Expose; | |||
13 | use FOS\UserBundle\Model\User as BaseUser; | 13 | use FOS\UserBundle\Model\User as BaseUser; |
14 | use Wallabag\CoreBundle\Entity\Config; | 14 | use Wallabag\CoreBundle\Entity\Config; |
15 | use Wallabag\CoreBundle\Entity\Entry; | 15 | use Wallabag\CoreBundle\Entity\Entry; |
16 | use Wallabag\CoreBundle\Entity\Tag; | ||
17 | 16 | ||
18 | /** | 17 | /** |
19 | * User. | 18 | * User. |
@@ -70,11 +69,6 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
70 | protected $config; | 69 | protected $config; |
71 | 70 | ||
72 | /** | 71 | /** |
73 | * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\Tag", mappedBy="user", cascade={"remove"}) | ||
74 | */ | ||
75 | protected $tags; | ||
76 | |||
77 | /** | ||
78 | * @ORM\Column(type="integer", nullable=true) | 72 | * @ORM\Column(type="integer", nullable=true) |
79 | */ | 73 | */ |
80 | private $authCode; | 74 | private $authCode; |
@@ -94,7 +88,6 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
94 | { | 88 | { |
95 | parent::__construct(); | 89 | parent::__construct(); |
96 | $this->entries = new ArrayCollection(); | 90 | $this->entries = new ArrayCollection(); |
97 | $this->tags = new ArrayCollection(); | ||
98 | $this->roles = array('ROLE_USER'); | 91 | $this->roles = array('ROLE_USER'); |
99 | } | 92 | } |
100 | 93 | ||
@@ -171,26 +164,6 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
171 | return $this->entries; | 164 | return $this->entries; |
172 | } | 165 | } |
173 | 166 | ||
174 | /** | ||
175 | * @param Entry $entry | ||
176 | * | ||
177 | * @return User | ||
178 | */ | ||
179 | public function addTag(Tag $tag) | ||
180 | { | ||
181 | $this->tags[] = $tag; | ||
182 | |||
183 | return $this; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * @return ArrayCollection<Tag> | ||
188 | */ | ||
189 | public function getTags() | ||
190 | { | ||
191 | return $this->tags; | ||
192 | } | ||
193 | |||
194 | public function isEqualTo(UserInterface $user) | 167 | public function isEqualTo(UserInterface $user) |
195 | { | 168 | { |
196 | return $this->username === $user->getUsername(); | 169 | return $this->username === $user->getUsername(); |