From 374aa6c9ccf8a34a7794e44e1f8f8590e7642a3e Mon Sep 17 00:00:00 2001 From: Steeve TITECA Date: Mon, 14 Dec 2020 15:49:38 +0100 Subject: [PATCH] Fix Category TreeRoot identifierMethod loading --- src/Oro/Bundle/CatalogBundle/Entity/Category.php | 2 +- src/Oro/Component/Tree/Entity/TreeTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Oro/Bundle/CatalogBundle/Entity/Category.php b/src/Oro/Bundle/CatalogBundle/Entity/Category.php index 09d43cefaa3..dcf9de576df 100644 --- a/src/Oro/Bundle/CatalogBundle/Entity/Category.php +++ b/src/Oro/Bundle/CatalogBundle/Entity/Category.php @@ -339,7 +339,7 @@ class Category extends ExtendCategory implements SluggableInterface, DatesAwareI /** * @var integer * - * @Gedmo\TreeRoot + * @Gedmo\TreeRoot(identifierMethod="getRoot") * @ORM\Column(name="tree_root", type="integer", nullable=true) * @ConfigField( * defaultValues={ diff --git a/src/Oro/Component/Tree/Entity/TreeTrait.php b/src/Oro/Component/Tree/Entity/TreeTrait.php index 2197e3b6ed6..b5d31067b53 100644 --- a/src/Oro/Component/Tree/Entity/TreeTrait.php +++ b/src/Oro/Component/Tree/Entity/TreeTrait.php @@ -34,7 +34,7 @@ trait TreeTrait /** * @var integer * - * @Gedmo\TreeRoot + * @Gedmo\TreeRoot(identifierMethod="getRoot") * @ORM\Column(name="tree_root", type="integer", nullable=true) */ protected $root;