1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add a command to automatically tag all entries for a user

This commit is contained in:
Kévin Gomez 2015-10-24 15:11:06 +02:00
parent cad8cda7af
commit 625acf3352
9 changed files with 149 additions and 11 deletions

View file

@ -458,6 +458,10 @@ class Entry
*/
public function addTag(Tag $tag)
{
if ($this->tags->contains($tag)) {
return;
}
$this->tags[] = $tag;
$tag->addEntry($this);
}