We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Bug in Model::assign($_POST)

i try upgrade my phalcon 1.3.4 to phalcon 2.0.6, but, i found a bug, when i send post form data, some properties cant assign to Model, so its property has null value (its property is integer type), but if i use phalcon 1.3.4, its not problem (success to assign post form data)

this is my example code

in 1.3.4 :

$data = new PgComplaint();
$data->assign($_POST);
$data->id = generatedUuidString();
$data->save();

but, if in 2.0.6

$data = new PgComplaint();
$data->assign($_POST);
$data->id = generatedUuidString();
$data->status = $_POST['status'];
$data->save();

i read in 2.0.7, changes not include this bug, cmiiw

Could you please submit this is a bug on github following this guide? https://github.com/phalcon/cphalcon/blob/2.0.x/CONTRIBUTING.md#bug-report-checklist