Skip to content

Instantly share code, notes, and snippets.

@pokisin
Last active January 5, 2017 17:54
Show Gist options
  • Save pokisin/50fc250ef7a64e561b6cf60749a7f7af to your computer and use it in GitHub Desktop.
Save pokisin/50fc250ef7a64e561b6cf60749a7f7af to your computer and use it in GitHub Desktop.
How to run RAW SQL query in Phalcon
$query = "SELECT * from ejemplo";
$resultGeneral = $this->db->query($query);
$resultGeneral->setFetchMode(\Phalcon\Db::FETCH_ASSOC);
$resultGeneral = $resultGeneral->fetchAll($resultGeneral);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment