Skip to content

Multiple TreePath and TreePathSource fields #2905

Open
@hardikaspl

Description

@hardikaspl

Feature Request

Is there any chance i can have multiple TreePath and TreePathSource fields ?

#[ORM\Column(name: "category", type: "text", nullable: true)]
#[Gedmo\TreePath(separator: "|", appendId: false, endsWithSeparator: false)]
protected $category;

#[ORM\Column(name: "name", type: "string", length: 255)]
#[Gedmo\Translatable]
#[Gedmo\TreePathSource(field: category)]
protected $name;

#[Gedmo\TreePath(separator: "/", appendId: false, endsWithSeparator: false)]
#[ORM\Column(name: "path", type: "string", length: 3000, nullable: true)]
protected $path;

#[ORM\Column(name: "slug", type: "string", length: 255)]
#[Gedmo\TreePathSource(field: path)]
#[Gedmo\Slug(fields: ["name"], unique: false)]
protected $slug;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions