* Tag.
*
* @XmlRoot("tag")
- * @ORM\Table(name="`tag`")
+ * @ORM\Table(
+ * name="`tag`",
+ * options={"collate"="utf8mb4_bin", "charset"="utf8mb4"},
+ * )
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
* @ExclusionPolicy("all")
*/
*/
public function setLabel($label)
{
- $this->label = $label;
+ $this->label = mb_convert_case($label, MB_CASE_LOWER);
return $this;
}