GithubHelp home page GithubHelp logo

In TreeListener.php line 72: Tree object class: Pim\Bundle\CatalogBundle\Entity\Category must have tree metadata at this point about pim-docs HOT 2 CLOSED

akeneo avatar akeneo commented on July 18, 2024
In TreeListener.php line 72: Tree object class: Pim\Bundle\CatalogBundle\Entity\Category must have tree metadata at this point

from pim-docs.

Comments (2)

tamarasaurus avatar tamarasaurus commented on July 18, 2024

Hi @kamranmalikawan, for bugs with the pim, you can create an issue at https://github.com/akeneo/pim-community-dev/issues instead.

Regards,
Tamara

from pim-docs.

karthik32cse avatar karthik32cse commented on July 18, 2024

Solution:

The above issue is occured due to the DependencyInjection. In order to fix this issue follow the below instructions,

Creating an Extension Class:

  1. It has to live in the DependencyInjection namespace of the bundle;
  2. It has to implement the ExtensionInterface, which is usually achieved by extending the Extension class;
  3. The name is equal to the bundle name with the Bundle suffix replaced by Extension (e.g. the Extension class of the AcmeBundle would be called AcmeExtension and the one for AcmeCatalogBundle would be called AcmeCatalogExtension).

Code:

# /src/Acme/Bundle/CatalogBundle/DependencyInjection/AcmeCatalogExtension.php
`<?php

namespace Acme\Bundle\CatalogBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

class AcmeCatalogExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('entities.yml');
}
}`

Let me know if you have any questions

Regards,
Karthik Dhakshinamoorthy

from pim-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.