-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use php74 preloading because of how table maps are dumped #1695
Comments
references #361 |
I have created a PR (#1742) which should fix this issue. If you have time to test it, I'd be happy to get some feedback |
I am using propelorm/Propel2 together with SkyFoxvn/PropelBundle in a Symfony 4.4 application. PR #1742 breaks the application even if the model has been rebuilt, because the database connections are configured via PropelBundle (config coming from config/packages/propel.yaml in the symfony application) and the generated loader script is not included. Is there any workaround for this? |
Interesting, thank your for reporting. |
I'm getting a "Database map was not initialized. Please check the database loader script included by your conf" error. After (manually) including the generated loadDatabase.php in PropelBundle::configureConnections(), it seems to work. As far as I understood PR #1742, the generated loader is included at the end of the (PHP) config script. However, with PropelBundle, the config is loaded from YAML and connections are initialized in PropelBundle::boot(). |
I am not familiar with PropelBundle, so it is easy for me to say that the problem lies there. My guess is that it rebuilds the config (
|
Alright, this is just a guess, but it seems like PropelBundle is not generating a conf file at all, but rather sets the properties manually (in |
AFAIK, PropelBundle does not use a |
I have opened a new issue with SkyFoxvn/PropelBundle so it can be fixed there. |
Alright, that sucks. Seems like they implemented their own way of configuring Propel, and now the two packages are tightly coupled. A way to check if manual loading is required would be something like if(defined('\\Propel\\Runtime\\ServiceContainer\\StandardServiceContainer::CONFIGURATION_VERSION')
&& StandardServiceContainer::CONFIGURATION_VERSION >= 2) {
...
} |
@mringler yes the bundle configures Propel by his own way. The idea of the bundle is to be simple a wrapper for Propel which basically mean to save you time for configurations by preconfiguring the propel more specifically to work with Symfony file architecture |
We can close this then as there is nothing we can do here on our side as follow up? |
I think @SkyFoxvn implemented this in the wrapper, nothing to do on Propel side. So this can be closed. |
The text was updated successfully, but these errors were encountered: