implements Phalcon\Mvc\Model\Query\StatusInterface
This class represents the status returned by a PHQL statement like INSERT, UPDATE or DELETE. It offers context information and the related messages produced by the model which finally executes the operations when it fails
$phql = "UPDATE Robots SET name = :name:, type = :type:, year = :year: WHERE id = :id:"; $status = $app->modelsManager->executeQuery( $phql, [ "id" => 100, "name" => "Astroy Boy", "type" => "mechanical", "year" => 1959, ] ); // Check if the update was successful if ($status->success() === true) { echo "OK"; }
Returns the model that executed the action
Returns the messages produced because of a failed operation
Allows to check if the executed operation was successful
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Query_Status.html