diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-26 09:41:42 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 21:09:15 +0100 |
commit | 092ca70725b0263390e45c46f93828c613eca3f0 (patch) | |
tree | 7b9fe8b824505b645bda6896a3589f09e25b1ccc /src/Wallabag/CoreBundle/Entity/Tag.php | |
parent | a36737f4859e3acbddf5cfe90c279ba725a6d88a (diff) | |
download | wallabag-092ca70725b0263390e45c46f93828c613eca3f0.tar.gz wallabag-092ca70725b0263390e45c46f93828c613eca3f0.tar.zst wallabag-092ca70725b0263390e45c46f93828c613eca3f0.zip |
add relation between user and tags, tests are broken
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Tag.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Tag.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 5aed1fa0..29a5e4b5 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php | |||
@@ -41,8 +41,14 @@ class Tag | |||
41 | */ | 41 | */ |
42 | private $entries; | 42 | private $entries; |
43 | 43 | ||
44 | public function __construct() | 44 | /** |
45 | * @ORM\ManyToOne(targetEntity="User", inversedBy="tags") | ||
46 | */ | ||
47 | private $user; | ||
48 | |||
49 | public function __construct(User $user) | ||
45 | { | 50 | { |
51 | $this->user = $user; | ||
46 | $this->entries = new ArrayCollection(); | 52 | $this->entries = new ArrayCollection(); |
47 | } | 53 | } |
48 | /** | 54 | /** |