John Malone Mon Sep 20 17:39:35 -0400 2010

Subject: Raw SQL query

I have a project and all my models are laid out and are working correctly. However, I need to run a raw query against one of the tables. I see there is the ability via the Connection class to do so, but I don't understand how to do it.



P.S. This library is rad. Thank you guys so much for putting it together.

John Malone Mon Sep 20 18:26:58 -0400 2010

Hmm, still throwing errors. Here is the relevant line of code:

Edit: the formatting is messing with my code, so here it is on pastebin:

Faculty is working with the normal finder methods, but this is saying 'Uncaught exception 'ActiveRecord\ActiveRecordException' with message 'Call to undefined method: query'

Kien La Mon Sep 20 19:46:12 -0400 2010

You'll need the latest version off github. Model::query() was added after 1.0. Sorry forgot to mention that.