Phalcon ORM does not support PGSQL arrays, so you'll have to write your native SQL queries like so:
class SomeController extends \Phalcon\Mvc\Controller
{
public function someAction()
{
$set = array("1","6","9","12");
settype($set, 'array'); // can be called with a scalar or array
$result = array();
foreach ($set as $t) {
if (is_array($t)) {
$result[] = to_pg_array($t);
} else {
$t = str_replace('"', '\\"', $t); // escape double quote
if (! is_numeric($t)) // quote only non-numeric values
$t = '"' . $t . '"';
$result[] = $t;
}
}
$result = '{' . implode(",", $result) . '}'; // format
$this->db->execute("INSERT INTO tbl (colName) VALUES (".$result.")");
}
}
https://stackoverflow.com/questions/5631387/php-array-to-postgres-array