Permalink
Browse files

BackwardsCompatibilityBreak - Swapped the order of the last two param…

…eters of fORMRelated::setOrderBys() so that $route (which is really just NULL most of the time) was last and optional
  • Loading branch information...
wbond committed Nov 3, 2008
1 parent 367d1ea commit 3d22a99957153ac321ddfcdc3420a4fb1a827ce4
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/fORMRelated.php
View
@@ -618,11 +618,11 @@ static public function reset()
*
* @param mixed $class The class name or instance of the class this ordering rule applies to
* @param string $related_class The related class we are getting info from
* @param string $route The route to the related table, this should be a column name in the current table or a join table name
* @param array $order_bys An array of the order bys for this table.column combination - see fRecordSet::build() for format
* @param string $route The route to the related table, this should be a column name in the current table or a join table name
* @return void
*/
static public function setOrderBys($class, $related_class, $route, $order_bys)
static public function setOrderBys($class, $related_class, $order_bys, $route=NULL)
{
$table = fORM::tablize($class);
$related_table = fORM::tablize($related_class);

0 comments on commit 3d22a99

Please sign in to comment.