forked from wallabag/wallabag
Add a command to automatically tag all entries for a user
This commit is contained in:
@ -458,6 +458,10 @@ class Entry
|
||||
*/
|
||||
public function addTag(Tag $tag)
|
||||
{
|
||||
if ($this->tags->contains($tag)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->tags[] = $tag;
|
||||
$tag->addEntry($this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user