Comments (10)
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.
@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.
Sure.
from craueconfigbundle.
+1
interested too
from craueconfigbundle.
@crmpicco, any progress?
from craueconfigbundle.
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.
@crmpicco any progress on the PR?
from craueconfigbundle.
@craue have you found any solution to prevent craue_config_setting
from being created while custom settings entity is enabled?
from craueconfigbundle.
@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.
Hey guys. Take a look at #50 and let me know if it works for you. Feedback is welcome.
from craueconfigbundle.
Related Issues (20)
- Possibility to have settings of different types HOT 4
- Symfony 4 support HOT 1
- Good bundle but... HOT 1
- "Using a custom entity for settings" doesn't work HOT 2
- Bundle only works with default entity manager not with multiple EntityManagers HOT 1
- Getting a configuration ignoring cache HOT 2
- Using a custom form schema
- Custimize rendering of settings
- How to get settings into a Symfony Command? HOT 2
- Service "craue_config" not found HOT 3
- Issues v2.3.0 and PR #50 HOT 2
- Case - empty table HOT 1
- Add Symfony 5 support HOT 2
- Cached value not getting flushed after updated from the web. HOT 3
- Issue using Redis as Cache HOT 2
- There is no extension able to load the configuration for "craue_config_settings" HOT 2
- Doctrine Cache Provider in Symfony 4 HOT 1
- CraueConfigBundle, Redis and provider tagging
- Symfony 6.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craueconfigbundle.