ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:dbat

This is an old revision of the document!


$_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 setDatabaseConnection().

Usage

In the example below, an Active Record class called person is not associated with a table called persons (the default), but with a table called people.

class person extends ADOdb_Active_Record
{
   public $_table = 'people';
}
v5/activerecord/dbat.1449418607.txt.gz · Last modified: 2017/04/21 11:21 (external edit)