[Solar-svn] Revision 2752
pmjones at solarphp.com
pmjones at solarphp.com
Sat Sep 8 15:05:33 CDT 2007
branch: Solar_Sql_Select: [FIX] Followup fix to use fetchValue() instead of fetch('value') because of change from fetch() to _fetch().
Modified: branches/orm/Solar/Sql/Select.php
===================================================================
--- branches/orm/Solar/Sql/Select.php 2007-09-08 20:01:45 UTC (rev 2751)
+++ branches/orm/Solar/Sql/Select.php 2007-09-08 20:05:33 UTC (rev 2752)
@@ -52,14 +52,14 @@
* // limit by which page of results we want
* $select->limitPage(1);
*
- * // get a PDOStatement object (the default)
- * $result = $select->fetch(); // or fetch('pdo')
+ * // get a PDOStatement object
+ * $result = $select->fetchPdo();
*
- * // alternatively, get an array of data
- * $rows = $select->fetch('all');
+ * // alternatively, get an array of all rows
+ * $rows = $select->fetchAll();
*
- * // or, get a Solar_Sql_Rowset object
- * $rows = $select->fetch('rowset');
+ * // or an array of one row
+ * $rows = $select->fetchOne();
*
* // find out the count of rows, and how many pages there are.
* // this comes back as an array('count' => ?, 'pages' => ?).
@@ -1046,7 +1046,7 @@
);
// get the count and calculate pages
- $count = $select->fetch('value');
+ $count = $select->fetchValue();
$pages = 0;
if ($count > 0) {
$pages = ceil($count / $this->_paging);
More information about the Solar-svn
mailing list