Hi. After upgrading Phalcon 1.3.4 -> 2.0.0 (PHP_PHALCON_ZEPVERSION "0.6.2a"
) I surprised by message
Cannot use a scalar value as an array in phalcon/mvc/model/query.zep on line 1823 in /var/www/vhosts/hh/app/models/Country.php on line xxx
This message fires when querying INSERT INTO with single value
<?php
$manager = $this->getModelsManager();
$manager->executeQuery('INSERT INTO Country (active) VALUES (1)');
My database table
CREATE TABLE `country` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `idx_active` (`active`)
);
How I can resolve it?