Giter Site home page Giter Site logo

Comments (8)

mamazu avatar mamazu commented on May 27, 2024

Thanks for using our plugin and submitting a feature suggestion. It would be a nice feature. We do not intend to add it as we don't see the business value (for us) but if you have an idea on how to implement it feel free to submit a merge request. I would be glad to help.

from syliustierpriceplugin.

jcgdjob avatar jcgdjob commented on May 27, 2024

I tried to override the entity but error throw:
Fatal error: Cannot declare class App\Entity\TierPrice because the name is already in use

App\Entity\TierPrice:
    type: mappedSuperclass
    table: brille24_tierprice

Tired also updating the resource:

sylius_resource:
    resources:
      brille24.tierprice:
        classes:
           model: App\Entity\TierPrice

Any idea?

from syliustierpriceplugin.

mamazu avatar mamazu commented on May 27, 2024

Looks like some kind of include bug. Because the class App\Entity\Tierprice already seems to exist. This should not be a config problem.

from syliustierpriceplugin.

jcgdjob avatar jcgdjob commented on May 27, 2024

So, is there a way I can add a field on Brille24\SyliusTierPricePlugin\Entity\TierPrice ?

from syliustierpriceplugin.

mamazu avatar mamazu commented on May 27, 2024

This should be possible. I have never worked with YML as doctrine mappings so maybe there is missing something. But it works if you just override the entity with itself without adding any properties?

from syliustierpriceplugin.

jcgdjob avatar jcgdjob commented on May 27, 2024

Found the bug (a typo). It works now. Thanks!

from syliustierpriceplugin.

mamazu avatar mamazu commented on May 27, 2024

Great that you could get it to work. Your welcome.

from syliustierpriceplugin.

mamazu avatar mamazu commented on May 27, 2024

Closed. Please update to version 1.6 to get this feature.

from syliustierpriceplugin.

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.