Hi, 

 

I am trying to port a symfony 1.2 application to 1.3.  When regenerating the
model, I get following parse error below.  It looks that something goes
wrong when the  symfony behaviors code is added to the propel generated code
(a '}' for closing the method doUpdate is missing).  Anybody any idea how to
resolve this issue?

 

D:\wamp\www\xerias_13>php symfony propel:build --all-classes

>> schema    converting "D:/wamp/www/xerias_13/config/schema.yml" to XML

>> schema    putting D:/wamp/www/xerias_13/config/generated-schema.xml

>> propel    Running "om" phing task

>> file-     D:/wamp/www/xerias_13/config/generated-schema.xml

>> file-     D:/wamp/www/xerias_13/config/generated-schema-transformed.xml

>> autoload  Resetting application autoloaders

>> file-
D:/wamp/www/xerias_13/cache/fro.../config/config_autoload.yml.php

>> propel    generating form classes

PHP Parse error:  parse error, expecting `T_FUNCTION' in
D:\wamp\www\xerias_13\l

ib\model\om\BaseBloggableHasTagPeer.php on line 1597

 

 

To be more specific, this is the context:

 

                $ret = BasePeer::doUpdate($selectCriteria, $criteria, $con);

                }

    // symfony_behaviors behavior

    foreach (sfMixer::getCallables('BaseBloggableHasTagPeer:doUpdate:post')
as $sf_hook)

    {

      call_user_func($sf_hook, 'BaseBloggableHasTagPeer', $values, $con,
$ret);

    }

 

    return $ret; 

// LINE 1597

 

                /**

                 * Method to DELETE all rows from the bloggable_has_tag
table.

                 *

                 * @return     int The number of affected rows (if supported
by underlying database driver).

                 */

                public static function doDeleteAll($con = null)

 

 

 

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.


Reply via email to