Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
how to get result SQL code from ORM query?
  • Hi.
    I want to debug my application. Can you please suggest
    how to get resulted SQL code from ORM query?
  • FuelPHP uses exceptions to signal errors, so if there is an error, an exception of a specific type is thrown. In case of ORM most exceptions will come from the underlying DB classes. In case of a database error, \Database_Exception will be thrown, which will include both the message and the SQL engine error code.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion