How do I check the result of a mapper call to update a record ?

34 views
Skip to first unread message

Matt Darby

unread,
Dec 19, 2016, 5:58:33 PM12/19/16
to Fat-Free Framework

I'm using the SQL Mapper to update records in my MYSQL DB which is working ok - but I can't see how to check what the outcome of the update was from the call to save() or update().

Update seems to return the entire mapper object which doesn't offer an obvious way of checking if the update failed. Should I be checking the return code or catching an exception?

Any help appreciated!

Matt
Reply all
Reply to author
Forward
0 new messages