Hello My App Upgraded
From
- php 5.6
- phalcon 2
- apache + fast-cgi To
- php 7.0
- Phalcon 3
- Nginx + php-fpm
When this upgrade occured.
my app have many DB errors like this database errors :
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column '***' at row 1
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column '***' at row 1
if set 0 instead of null for integer values in models this error can be fix.
How to fix it generally?