What's the best way of checking if a record saved/updated or not?
I know once you call $obj->save() it returns object with the primary id, but what does it return if the save fails?
Many thanks.
Whenever saving fails it will always throw an exception. The method will always return true, unless the objects was frozen and saving isn't allowed which is the only reason save() would ever return false. This is because "freezing" is used to prevent looping when saving objects that are related in more than 1 way (throw-catching expections there would add unnecessary overhead). In all other cases the method will return true or throw an exception telling you what's wrong.