[Solar-svn] Revision 2557
pmjones at solarphp.com
pmjones at solarphp.com
Wed Jun 27 16:40:06 CDT 2007
udpated inline docs
fixes #77
Modified: trunk/Solar/Sql/Model.php
===================================================================
--- trunk/Solar/Sql/Model.php 2007-06-27 20:58:18 UTC (rev 2556)
+++ trunk/Solar/Sql/Model.php 2007-06-27 21:40:06 UTC (rev 2557)
@@ -259,13 +259,16 @@
*
* // index on a single column:
* // CREATE INDEX idx_name ON table_name (col_name)
- * $this->_indexes['idx_name'] = array($type, 'col_name');
- *
+ * $this->_indexes['idx_name'] = array(
+ * 'type' => $type,
+ * 'cols' => 'col_name'
+ * );
+ *
* // index on multiple columns:
* // CREATE INDEX idx_name ON table_name (col_1, col_2, ... col_N)
* $this->_indexes['idx_name'] = array(
- * $type,
- * array('col_1', 'col_2', ..., 'col_N')
+ * 'type' => $type,
+ * 'cols' => array('col_1', 'col_2', ..., 'col_N')
* );
*
* // easy shorthand for an index on a single column,
More information about the Solar-svn
mailing list