Code Monkey home page Code Monkey logo

Comments (4)

fzaninotto avatar fzaninotto commented on July 28, 2024

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.

kaisellgren avatar kaisellgren commented on July 28, 2024

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.

willdurand avatar willdurand commented on July 28, 2024

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 before new $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.

willdurand avatar willdurand commented on July 28, 2024

Oups, I was on my mobile phone…

from propelbundle.

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.