mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Migrate to Gedmo attributes
This commit is contained in:
parent
2a60d8473d
commit
a1440dffda
3 changed files with 5 additions and 2 deletions
|
@ -41,9 +41,9 @@ class Tag implements \Stringable
|
|||
|
||||
/**
|
||||
* @Expose
|
||||
* @Gedmo\Slug(fields={"label"}, prefix="t:")
|
||||
*/
|
||||
#[ORM\Column(length: 128, unique: true)]
|
||||
#[Gedmo\Slug(fields: ['label'], prefix: 't:')]
|
||||
private $slug;
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Entry::class, mappedBy: 'tags', cascade: ['persist'])]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue