Merging fixes and enhancements into trunk.

Revision: [2478]
Merging differences between model_php4.php and model_php5.php

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2479 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-04-11 15:55:53 +00:00
parent e3cadc0eb4
commit a95a8c0a61
3 changed files with 12 additions and 2 deletions

View file

@ -6,4 +6,4 @@
// +---------------------------------------------------------------------------------------------------+ //
///////////////////////////////////////////////////////////////////////////////////////////////////////////
1.0.0.2477
1.0.0.2479

View file

@ -1215,6 +1215,15 @@ class Model extends Object
$limit_str = $db->limit($limit, $offset);
}
if ($order == null)
{
$order = array();
}
else
{
$order = array($order);
}
$queryData = array(
'conditions' => $conditions,
'fields' => $fields,

View file

@ -1494,7 +1494,8 @@ class Model extends Object
}
/**
* Returns a resultset array with specified fields from database matching given conditions. Method can be used to generate option lists for SELECT elements.
* Returns a resultset array with specified fields from database matching given conditions.
* Method can be used to generate option lists for SELECT elements.
*
* @param mixed $conditions SQL conditions as a string or as an array('field'=>'value',...)
* @param string $order SQL ORDER BY conditions (e.g. "price DESC" or "name ASC")