diff options
author | Sander Marechal <[email protected]> | 2011-03-03 08:30:37 +0100 |
---|---|---|
committer | Sander Marechal <[email protected]> | 2011-03-03 08:30:37 +0100 |
commit | 089336fcd9417d6c4e40be802b3dec37b11c7d51 (patch) | |
tree | ff4cd97deb4e4cadd26ef6191ed6411df5957dd3 /README.markdown | |
parent | b58b452dfa6de53f3864a78cfba9eef1842b95d5 (diff) |
Rename order_raw to order_by_expr
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index cbc942b..40d0067 100644 --- a/README.markdown +++ b/README.markdown @@ -208,9 +208,9 @@ Two methods are provided to add `ORDER BY` clauses to your query. These are `ord $people = ORM::for_table('person')->order_by_asc('gender')->order_by_desc('name')->find_many(); -If you want to order by something other than a column name, then use the `order_raw` method to add a raw `ORDER BY` clause. +If you want to order by something other than a column name, then use the `order_by_expr` method to add an unquoted SQL expression as an `ORDER BY` clause. - $people = ORM::for_table('person')->order_raw('SOUNDEX(`name`)')->find_many(); + $people = ORM::for_table('person')->order_by_expr('SOUNDEX(`name`)')->find_many(); #### Grouping #### |