v5:activerecord:dbat
This is an old revision of the document!
$_dbat
Type | String |
---|---|
Default | NULL |
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.1452647754.txt.gz · Last modified: 2017/04/21 11:21 (external edit)