summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorDurham Hale <[email protected]>2012-08-28 22:13:10 +0100
committerDurham Hale <[email protected]>2012-08-28 22:13:10 +0100
commit3758914a55fcdce8f7e757b763525662dde2a0a7 (patch)
tree719b115e12603bf7056e7a6464c04323bf2a2ae3 /README.markdown
parent089336fcd9417d6c4e40be802b3dec37b11c7d51 (diff)
parentf9af1ffce3b01e6e87ded22cc5903c0bf253fbc1 (diff)
Merge remote-tracking branch 'sandermarechal/raw-query' into develop
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 40d0067..9ebb1b9 100644
--- a/README.markdown
+++ b/README.markdown
@@ -301,7 +301,7 @@ The `join` methods also take an optional third parameter, which is an `alias` fo
#### Raw queries ####
-If you need to perform more complex queries, you can completely specify the query to execute by using the `raw_query` method. This method takes a string and an array of parameters. The string should contain placeholders, either in question mark or named placeholder syntax, which will be used to bind the parameters to the query.
+If you need to perform more complex queries, you can completely specify the query to execute by using the `raw_query` method. This method takes a string and optionally an array of parameters. The string can contain placeholders, either in question mark or named placeholder syntax, which will be used to bind the parameters to the query.
$people = ORM::for_table('person')->raw_query('SELECT p.* FROM person p JOIN role r ON p.role_id = r.id WHERE r.name = :role', array('role' => 'janitor')->find_many();