Author: david
Date: Mon Feb 14 15:34:44 2011
New Revision: 8979
Log:
Remove indirection
Modified:
trunk/lib/task/propelBuildNestedSetTask.class.php
Modified: trunk/lib/task/propelBuildNestedSetTask.class.php
==============================================================================
--- trunk/lib/task/propelBuildNestedSetTask.class.php Mon Feb 14 14:23:55
2011 (r8978)
+++ trunk/lib/task/propelBuildNestedSetTask.class.php Mon Feb 14 15:34:44
2011 (r8979)
@@ -62,15 +62,11 @@
$sql .= ' ORDER BY parent_id ASC, lft ASC';
$databaseManager = new sfDatabaseManager($this->configuration);
-
$conn = $databaseManager->getDatabase('propel')->getConnection();
- $sth = $conn->query($sql);
- $infoObjects = $sth->fetchAll(PDO::FETCH_ASSOC);
-
$tree = $children = array();
- foreach ($infoObjects as $key => $item)
+ foreach ($conn->query($sql, PDO::FETCH_ASSOC) as $item)
{
// Add root node to tree
if (QubitInformationObject::ROOT_ID == $item['id'])
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.