This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
v5:activerecord:lockmode [2015/12/06 21:32] mnewnham created |
v5:activerecord:lockmode [2016/01/13 02:15] (current) mnewnham ↷ Links adapted because of a move operation |
||
---|---|---|---|
Line 6: | Line 6: | ||
</WRAP> | </WRAP> | ||
===== Description ===== | ===== Description ===== | ||
- | Setting the value of this class variable adds the value to SELECT statements executed by [[activerecord:load()]]. This value is the default for MySQL databases, but may need to be changed for others. | + | Setting the value of this class variable adds the value to SELECT statements executed by [[v5:activerecord:load]]. This value is the default for MySQL databases, but may need to be changed for others. |
===== Usage ===== | ===== Usage ===== | ||
Line 13: | Line 13: | ||
class person extends ADOdb_Active_Record | class person extends ADOdb_Active_Record | ||
{ | { | ||
- | $lockMode = ' FOR UPDATE NOWAIT'; | + | public $lockMode = ' FOR UPDATE NOWAIT'; |
} | } | ||
</code> | </code> |