Giter VIP home page Giter VIP logo

Comments (6)

kunicmarko20 avatar kunicmarko20 commented on July 18, 2024

Maybe try making ProductAdminBase an abstract class? Else it will try to register it as an admin service and it will look for entity

from sonataautoconfigurebundle.

kunicmarko20 avatar kunicmarko20 commented on July 18, 2024

admin suffix basically removes Admin from the end of the class name (by default) and tries to find an entity with that name

from sonataautoconfigurebundle.

danaki avatar danaki commented on July 18, 2024

Yes, declaring it abstract did work. May be update README?

from sonataautoconfigurebundle.

kunicmarko20 avatar kunicmarko20 commented on July 18, 2024

What do you think would be useful to add to the README?

from sonataautoconfigurebundle.

danaki avatar danaki commented on July 18, 2024

Like "if you getting 'Entity "ProductAdminBase" not found...' try to make it abstract or smth like that. I really like your bundle, it reduces the number of configs in my project.

from sonataautoconfigurebundle.

kunicmarko20 avatar kunicmarko20 commented on July 18, 2024

Well, if you plan to use your class as a base I guess it should be abstract by default and then symfony wouldn't register it as a service. Not sure if that is useful in the readme, I guess people could find this issue if they run into it again.

Glad you like it, that was to point of it, to make it easier for people. Appreciate all the issues, if you have any suggestion for a feature feel free to open a new issue.

from sonataautoconfigurebundle.

Related Issues (17)

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.