Comments (4)
This is not a PropelBundle bug - this is a Propel bug.
Or rather, this is not a Propel bug. It's you who didn't configure your dbal connection properly.
Propel has never had a Pdo_mysqlPlatform
class. Please use the mailing-list for support before assuming there is a bug in the library.
from propelbundle.
I see.
The default configuration did not work:
dbal:
driver: %database_driver%
user: %database_user%
password: %database_password%
had to change the driver to mysql
.
It crashed so brutally I figured it must be a bug. It seems there is just no error handling so this case can be closed and marked as "invalid".
So, it seems it takes that percent sign tag data from the properties.ini file. I modified it to "mysql" and now it works great.
from propelbundle.
AFAIK it never existed..
The vendor name should be mysql, nothing else. Can you paste your config just to be sure it's not a bug :)
William
Le 11 nov. 2011 à 08:36, Kai [email protected] a écrit :
I encountered a problem when running propel:build-model. Apparently Pdo_mysqlPlatform does not exist anymore:
propel > om-template:
[propel-om] Loading XML schema files...
[PHP Error] include_once(platform\Pdo_mysqlPlatform.php): failed to open stream: No such file or directory [line 1060 of C:\www\outotec.ofil_plant\vendor\phing\classes\phing\Phing.php]
Execution of target "om" failed for the following reason: C:\www\outotec.ofil_plant\vendor\propel\generator\build-propel.xml:525:22: Execution of the target buildfile failed. Aborting.
[phing] C:\www\outotec.ofil_plant\vendor\propel\generator\build-propel.xml:525:22: Execution of the target buildfile failed. Aborting.I fixed this problem temporarily in a very ugly way.
Phing::__import()
function, modiftied from$ret = include_once($path);
to
if (preg_match('#Pdo_mysqlPlatform.php#i', $path)) { $ret = include_once('platform/mysqlPlatform.php'); } else { $ret = include_once($path); }
and
GeneratorConfig::getConfiguredPlatform()
modified to have this line beforenew $clazz
:$clazz = str_replace('Pdo_', '', $clazz);
I am hoping to see official patches that fix the problem the real way. I have no time and not enough knowledge to fix this a more proper way than this.
Reply to this email directly or view it on GitHub:
#72
from propelbundle.
Oups, I was on my mobile phone…
from propelbundle.
Related Issues (20)
- Slave connection is not working.
- ConnectionWrapper::useDebug = true prevents prepared statements from being closed properly HOT 1
- [1.6] Wrong allowedTypes HOT 5
- Symfony 3.4 + Save method not working HOT 1
- Symfony 3.4 + Unique Fields validation not working HOT 1
- Symfony 4.x compatibility HOT 1
- Symfony 3.4 + How to print sql query
- Symfony 3.4 Flex `The "propel.logger" service is private` deprecation notice HOT 2
- Symfony 3.4 Flex - `PropelDataCollector` without `reset()` method HOT 1
- Tag for branch 4.0 HOT 7
- 3.0 Update propel/propel to allow use of latest alpha HOT 1
- FileLocator issue on PropelBundle 4.0 HOT 3
- sluggable behavior: FatalThrowableError - Unsupported operand types HOT 1
- Syfmony 4.1 + How to generate mode
- Unable to use foreign keys across schemas HOT 1
- Uncaught PDOException: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected HOT 1
- Cannot require branch 4.0? HOT 5
- branch 3.0 PropelDataCollector cloneVar bug using Symfony 2.8-3.1 HOT 1
- Compatibility with symfony 5.x and PHP 8 HOT 7
- Final 1.6 release?
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 propelbundle.