Class \Prado\Data\ActiveRecord\TActiveRecordManager
TActiveRecordManager provides the default DB connection,
default active record gateway, and table meta data inspector.
The default connection can be set as follows:
TActiveRecordManager::getInstance()->setDbConnection($conn);
All new active record created after setting the \Prado\Data\ActiveRecord\DbConnection will use that connection unless the custom ActiveRecord class overrides the ActiveRecord::getDbConnection().
Set the \Prado\Data\ActiveRecord\setCache property to an ICache object to allow the active record gateway to cache the table meta data information.
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
|
public
|
|
public
|
|
public
static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setInvalidFinderResult(TActiveRecordInvalidFinderResult $value) : mixed
Define the way an active record finder react if an invalid magic-finder invoked
|
protected
|
public
mixed
|
DEFAULT_GATEWAY_CLASS
|
\Prado\Data\ActiveRecord\TActiveRecordGateway::class
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |