From 089336fcd9417d6c4e40be802b3dec37b11c7d51 Mon Sep 17 00:00:00 2001 From: Sander Marechal Date: Thu, 3 Mar 2011 08:30:37 +0100 Subject: Rename order_raw to order_by_expr --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.markdown') 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 #### -- cgit v1.2.3