ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:dbat

$_dbat

TypeString
DefaultNULL

Description

Setting the value of this class variable forces the class to use the specified database connection for a class. Form more information on this, see ADOdb_Active_Record::setDatabaseAdaptor(). There is normally no need to use this unless multiple database connections have been configured.

Usage

In the example below, an Active Record class called person is associated with a database adaptor called oracleAdaptor.

class person extends ADOdb_Active_Record
{
   public $_dbat = 'oracleAdaptor';
}
v5/activerecord/dbat.txt · Last modified: 2016/01/13 02:15 by mnewnham