As show at CakePHP 2.1.x - Run a query without any models in AppController I have a query,
$q = "select id from table where id=123";
$db = ConnectionManager::getDataSource('default');
$qr = $db->rawQuery($q);
ok (!), it works... But, how to get my data?? Where the tutorial examples?
I need something like $data = $qr->fetchAll()
method or $id = getMyData($qr)
function.