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

Difference between DB error and empty check

Hi,

If I am using the below code find out the maximum display order and for some reason the DB execution fails, what is the value it returns? Is it false, If false then for empty also the result will be false. How to differentiate between them?

$disp_order = Devices::maximum(array
    ("column" => "disp_order")
);


98.9k

If I am using the below code find out the maximum display order and for some reason the DB execution fails

Is any message being generated?