GithubHelp home page GithubHelp logo

Comments (10)

laupiFrpar avatar laupiFrpar commented on August 31, 2024 4

I find a solution. You can configure doctrine/dbal to ignore those tables.

doctrine:
    dbal:
        [...]
        schema_filter: ~^(?!craue_config_setting)~

Source : Symfony - Documentation - DoctrineMigrationsBundle

from craueconfigbundle.

crmpicco avatar crmpicco commented on August 31, 2024

@craue I believe I have a solution to prevent this table from being created. Would you be interested in me submitting a pull request for this?

from craueconfigbundle.

craue avatar craue commented on August 31, 2024

Sure.

from craueconfigbundle.

pitpit avatar pitpit commented on August 31, 2024

+1
interested too

from craueconfigbundle.

craue avatar craue commented on August 31, 2024

@crmpicco, any progress?

from craueconfigbundle.

yvoloshin avatar yvoloshin commented on August 31, 2024

I have a couple of follow-up question on this issue. I too would prefer that my custom settings entity table is created without the craue_config_setting table, but creating this table is not a problem as long as I can be sure that it is not used. So far, during my tests all the settings data is saved in the custom settings table. Are there any circumstances when data would be saved in the craue_config_setting table?

Also, could you explain why the craue_config_setting table gets created in the first place, and how inheritance is set up? Since the custom settings table uses fields in the craue_config_setting table, this looks like a case of Single Table Inheritance. But doesn't quite make sense because the BaseSetting parent class doesn't have @InheritanceType("SINGLE_TABLE") annotation.
Any help is greatly appreciated.

from craueconfigbundle.

j0k3r avatar j0k3r commented on August 31, 2024

@crmpicco any progress on the PR?

from craueconfigbundle.

mboron83 avatar mboron83 commented on August 31, 2024

@craue have you found any solution to prevent craue_config_setting from being created while custom settings entity is enabled?

from craueconfigbundle.

crmpicco avatar crmpicco commented on August 31, 2024

@j0k3r @craue Apologies, I never got around to finding a suitable solution for this. My "solution" was to delete the doctrine-mapping/Setting.orm.xml file from disk which prevented the craue_config_setting table from being created.

I have my own table, called config_setting and if there was a way to configure the bundle to use that then I wouldn't have needed to be marooned on an old commit.

I have now picked this back up because I have upgraded Twig locally and the CraueConfigBundle commit I am on is using a deprecated function.

Is there a way to customise the table name or ignore the Setting.orm.xml file entirely?

I think in the meantime I will need to fork this project and delete the doctrine mapping file and sync with upstream changes, but i'd rather use the parent project correct and not have to maintain a fork.

Do you have any advice?

from craueconfigbundle.

craue avatar craue commented on August 31, 2024

Hey guys. Take a look at #50 and let me know if it works for you. Feedback is welcome.

from craueconfigbundle.

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.