mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Improved public API in Tag entity, avoiding anemic model
This commit is contained in:
@@ -76,7 +76,7 @@ class TagService implements TagServiceInterface
|
||||
throw EntityDoesNotExistException::createFromEntityAndConditions(Tag::class, $criteria);
|
||||
}
|
||||
|
||||
$tag->setName($newName);
|
||||
$tag->rename($newName);
|
||||
|
||||
/** @var ORM\EntityManager $em */
|
||||
$em = $this->em;
|
||||
|
||||
Reference in New Issue
Block a user