v5:activerecord:save
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
activerecord:save [2015/12/05 02:09] – mnewnham | v5:activerecord:save [2016/01/13 02:15] (current) – ↷ Page moved from activerecord:save to v5:activerecord:save mnewnham | ||
---|---|---|---|
Line 9: | Line 9: | ||
The method saves a record by executing an INSERT or UPDATE SQL statement as appropriate. | The method saves a record by executing an INSERT or UPDATE SQL statement as appropriate. | ||
- | Returns | + | ==== Returns |
- | Returns | + | ^Value^Description^ |
+ | |0|An insert or update was unsuccessful| | ||
+ | |1|An insert or update was successful| | ||
+ | |-1|In the case of an update, and no data was modified| | ||
===== Usage ===== | ===== Usage ===== |
v5/activerecord/save.txt · Last modified: 2016/01/13 02:15 by mnewnham