ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:lockmode

This is an old revision of the document!


$lockMode

TypeString
Default' for update '

Description

Setting the value of this class variable adds the value to SELECT statements executed by load(). This value is the default for MySQL databases, but may need to be changed for others.

Usage

In this example we want to load() from an Oracle database with the opportunity of locking the records

class person extends ADOdb_Active_Record
{
    public $lockMode = ' FOR UPDATE NOWAIT';
}
v5/activerecord/lockmode.1449433983.txt.gz · Last modified: 2017/04/21 11:21 (external edit)