j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

save() return value #366

Closed lcsqlpete closed 4 years ago

lcsqlpete commented 4 years ago

When using save() to to update or create, what does it return when successful and when it fails?

treffynnon commented 4 years ago

Please review the source code before creating issues here - issues are not for simple support enquiries - paid consultancy can be arranged if you need it.

From the source you'll see that both save and update call _execute, which uses PDOStatement::execute() underneath. Documentation for that is in the PHP manual.