Login | Register
My pages Projects Community openCollabNet

Discussions > dev > propel 1.3

propel
Discussion topic

Back to topic list

propel 1.3

Reply

Author "Tomasz P dot Kotecki" <tomek at realtsp dot com>
Full name "Tomasz P dot Kotecki" <tomek at realtsp dot com>
Date 2006-10-03 03:39:11 PDT
Message Hi,

We decided to give 1.3 a try yesterday and run into two errors while
trying to run the main phing task:

1. Fatal error: Call to undefined method Inheritance::getName() in
(...)/propel-1.3/gen​erator/classes/prope​l/engine/builder/om/​php5/PHP5MultiExtend​ObjectBuilder.php
on line 50

Patch for which seems to be obvious:


Index:
generator/classes/pr​opel/engine/builder/​om/php5/PHP5MultiExt​endObjectBuilder.php​
====================​====================​====================​=======
---
generator/classes/pr​opel/engine/builder/​om/php5/PHP5MultiExt​endObjectBuilder.php​
    (revision 448)
+++
generator/classes/pr​opel/engine/builder/​om/php5/PHP5MultiExt​endObjectBuilder.php​
    (working copy)
@@ -47,7 +47,7 @@
          */
         public function getName()
         {
- return $this->getChild(​)->getName();
+ return $this->getChild(​)->getClassName()​;
         }

2. Then, after re-running the task, phing said:

propel > convert-props:
      [echo] +-------------------​--------------------​---+
      [echo] | |
      [echo] | Converting project properties file to an |
      [echo] | array dump for run-time performance. |
      [echo] | |
      [echo] +-------------------​--------------------​---+
   [capsule] Using templatePath:
  (...)
   [capsule] Parsing control template:
../../extlib/propel-​generator/templates/​conf/Control.tpl
[PHP Error]
Capsule::include(../​../extlib/propel-gen​erator/templates/con​f/Control.tpl):
failed to open stream: No such file or directory [line 127 of
(...)phing-2.2.0/cla​sses/phing/lib/Capsu​le.php]


That one I'm not sure about. Given that we're using .ini now and
generator/templates/conf dir is gone, I guess we shouldn't have
convert-props invoked at all (since we can't successfully run that task
without Control.tpl).

Propel::cofigure(), however, suggests that we still can use the
converted XML file (or is it supposed to be just the .ini file
converted?). Anyway, I'd suggest that we do


====================​====================​====================​=======
--- extlib/propel-1.3/ru​ntime/classes/propel​/Propel.php (revision 448)
+++ extlib/propel-1.3/ru​ntime/classes/propel​/Propel.php (working copy)
@@ -173,10 +173,7 @@
                         }
                         ini_restore('track_errors');
                 } else {
- self::$configuration = include($configFile);
- if (self::$configuration === false) {
                                 throw new PropelException("Unable to
open configuration file: " . var_export($configFile, true));
- }
                 }

and

Index: generator/build-propel.xml
====================​====================​====================​=======
--- generator/build-propel.xml (revision 448)
+++ generator/build-propel.xml (working copy)
@@ -84,7 +84,7 @@

      <phingcall target="sql"/>
      <phingcall target="om"/>
- <phingcall target="convert-props"/>
    </target>

The last thing that caused problems were the PDO's problems with
prepared statements with MySQL, which resulted in random segfaults. I'd
say we could stick a warning about it somewhere, or is it just me, and
that issue is assumed to be widely known?

Anyway, seems like we've managed to get it to a point where it's pretty
much up and working. Still need to resolve some incompatibilities like
methods which use ResultSet directly, but I wouldn't expect those to
have any bugs.

HTH,
Tomek

« Previous message in topic | 1 of 12 | Next message in topic »

Messages

Show all messages in topic

propel 1.3 "Tomasz P dot Kotecki" <tomek at realtsp dot com> "Tomasz P dot Kotecki" <tomek at realtsp dot com> 2006-10-03 03:39:11 PDT
     Re: [propel-dev] propel 1.3 =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-10-03 04:58:10 PDT
         Re: [propel-dev] propel 1.3 hlellelid Hans Lellelid 2006-10-03 05:52:31 PDT
             Re: [propel-dev] propel 1.3 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-10-03 06:14:43 PDT
                 Re: [propel-dev] propel 1.3 hlellelid Hans Lellelid 2006-10-03 06:15:01 PDT
                     Re: [propel-dev] propel 1.3 =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-10-03 06:18:40 PDT
                         Re: [propel-dev] propel 1.3 hlellelid Hans Lellelid 2006-10-03 06:18:09 PDT
                             Re: [propel-dev] propel 1.3 =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-10-03 06:24:10 PDT
                             Re: [propel-dev] propel 1.3 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-10-03 06:24:46 PDT
                                 Re: [propel-dev] propel 1.3 hlellelid Hans Lellelid 2006-10-03 06:24:08 PDT
                                     Re: [propel-dev] propel 1.3 =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-10-03 06:42:30 PDT
             Re: [propel-dev] propel 1.3 =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-10-03 14:20:17 PDT
Messages per page: