In short: I have a MySQL table containing "type" column that is defined as TINYINT. When I pull that column using Phalcon\Db, it is cast as string in resulting PHP array.
Here is the code:
$sql = 'SELECT type FROM table WHERE account_id=:id'; $result = $db->query($sql, ['id' => $id], ['type' => \Phalcon\Db\Column::TYPE_INTEGER]);
Regardless of what PDO is doing, I expected that the third parameter would cast value of "type" key as integer PHP type.
What am I doing wrong here?