Custom SQL queries in symfony 1.4 with Propel
The solution is quite simple, use PDO directly. All the information that you need is in the pdo php page
$connection = Propel::getConnection();
$sql = "YOUR SQL QUERY";
$statement = $connection->prepare($sql);
$statement->execute();
$sql = "YOUR SQL QUERY";
$statement = $connection->prepare($sql);
$statement->execute();
while($result = $statement->fetch(PDO::FETCH_ASSOC))
{
// do something
}
greetings


3:58 pm
July 27th, 2010
so, we are not using propel :p
8:12 am
March 18th, 2011
[...] Fuente: http://joaquinnunez.cl/blog/2010/07/01/custom-sql-queries-in-symfony-1-4-with-propel/ [...]