ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:table

$_table

TypeString
DefaultNULL

Description

Setting the value of this class variable overrides the name of the database table associated with the Active Record set.

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/table.txt · Last modified: 2016/01/13 02:15 by mnewnham