Hi,

I have this static function:

public static function getOrdini($sort_order = 4)
{

    $con = Propel::getConnection();
    $sql = "select * from shop_orders LEFT JOIN shop_orders_total
            ON
            shop_orders.orders_id = shop_orders_total.orders_id
            AND
            shop_orders_total.sort_order = :sort_order";
    $stmt = $con->prepare($sql);

    $result = $stmt->execute(array(':sort_order' => $sort_order));
    $ordini = self::populateObjects($stmt);


    return $ordini;

}

When I call it I this error:

    ( ! ) Catchable fatal error: Object of class Criteria could not be
converted to string in /home/javier/Aptana_Studio_Workspace/dev_repo/
lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/util/
DebugPDOStatement.php on line 99

but if write the function in this way below I don't get any error:

public static function getOrdini()
{
    $sort_order = 4;
    $con = Propel::getConnection();
    ...

Any idea?

sf 1.4/propel

Regards

Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to