From 7a5e80f87e5ea126ee2becaac0df5108bd043e77 Mon Sep 17 00:00:00 2001 From: bermiferrer Date: Wed, 6 Feb 2008 09:00:16 +0000 Subject: [PATCH] Adding support for 'sort' on findBy options git-svn-id: http://svn.akelos.org/trunk@471 a2fa5c27-f921-0410-a72c-bf682d381be0 --- lib/AkActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AkActiveRecord.php b/lib/AkActiveRecord.php index a15a11e..6edb713 100644 --- a/lib/AkActiveRecord.php +++ b/lib/AkActiveRecord.php @@ -1041,7 +1041,7 @@ class AkActiveRecord extends AkAssociatedActiveRecord if (isset($options[0])){ return false; } - $valid_keys = array('conditions', 'include', 'joins', 'limit', 'offset', 'order', 'bind', 'select','select_prefix', 'readonly'); + $valid_keys = array('conditions', 'include', 'joins', 'limit', 'offset', 'order', 'sort', 'bind', 'select','select_prefix', 'readonly'); foreach (array_keys($options) as $key){ if (!in_array($key,$valid_keys)){ return false; @@ -1200,7 +1200,7 @@ class AkActiveRecord extends AkAssociatedActiveRecord } $options = $this->_extractOptionsFromArgs($args); - + $query_values = $args; $query_arguments_count = count($query_values); -- 2.11.4.GIT