We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

$table->save() stop execution of flow and does not produce errors also.

Hi Team,

In my Action when i am trying to save data into table then $table->save() stop execution of flow and does not produce errors also.

if ($table->save() == false) { echo $message = "Having error"; exit;

                }

When error occure, i am not able to see message but execution get stopped. Please provide your suggestion for this.

Thanks, Amol



85.5k

my guess would be that you wrapped the echo $application->handle() in try, catch and you have an sql error ?



1.1k

try

(new \Phalcon\Debug)->listen();