Gedmo-tree is part of the StofDoctrineExtensionsBundle for the Symfony PHP framework and Doctrine ORM. It is used for creating entities in a tree structure, for example categories with subcategories.
Questions tagged [gedmo-tree]
8 questions
2
votes
1 answer
How to get some child nodes by id with all parents (DoctrineExtensions, Gedmo-Tree NestedTreeRepository, Symfony)
Goal:
I have a category entity.
Every category can have subcategories.
Now I want to get specific category nodes by id with all its parents
My current solution (custom repository function):
public function…

emovere
- 152
- 1
- 13
2
votes
2 answers
Is it possible to update a required dependency from another package in the composer lock file?
I'm currently using the stof/doctrine-extensions-bundle in one of my Symfony projects and this bundle requires gedmo/doctrine-extensions. The latest version in gedmo/doctrine-extensions is failing. But the solution is in one of the sibling branches…

Kenchopa
- 99
- 11
1
vote
0 answers
Switch to PHP 7.1 caused Doctrine Gedmo Exceptions and Warnings
I am currently struggling with random exception and warning in Gedmo Behavioral Extension for Doctrine (or Atlantic18/DoctrineExtensions) that started to appear after change of PHP version from 5.6 to 7.1. It is happening just during using…

Boris Valo
- 61
- 7
1
vote
0 answers
Symfony Gedmo Tree
Gedmo Tree could be used for example with Projects and sub-products and so on. But i've an situation where i have a connection table between Products and Categories (ManytoMany).
Each product could be connected through many Categories. And each…

Bham
- 309
- 5
- 21
0
votes
1 answer
Accessing to Gedmo soft deleted entity
In annotations for the class of User entity, I have:
@Gedmo\SoftDeleteable(fieldName="deletedAt", hardDelete=false)
And later in code:
/**
* @var \DateTime
* @ORM\Column(type="datetime", nullable=true)
*/
protected $deletedAt;
Soft delete works…

Ivan Vulović
- 2,147
- 6
- 27
- 43
0
votes
0 answers
Reordering nested set tree with Gedmo Tree
I'm managing categories with (Atlantic18/DoctrineExtensions) Gedmo Nested Set Tree strategy in Symofny4 application.
I need to reorder the existing tree passing an array of rearranged categories to my controller.
So the starting tree is
- (1) Senza…

Jack Skeletron
- 1,351
- 13
- 37
0
votes
1 answer
Symfony 4 @UniqueEntity does not work on GEDMO tree composite fields
I seem to have done the set up correctly, but still this does not work, ie, it will not set the database table correctly. In fact it ignores completely the @UniqueEntity annotation.
I am setting up a GEDMO tree, where the title of the category…

BernardA
- 1,391
- 19
- 48
-3
votes
1 answer
Gedmo Tree nested-set with multiple sets
We are using the Gedmo package to manage our menus using a nested-set strategy on our web site.
It works, but the problem is that we have several different menus which are referenced via foreign key on our menu_item table.
Obviously our menu_item…

delboy1978uk
- 12,118
- 2
- 21
- 39