Class 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 DbConnection setDbConnection() will use that connection unless the custom ActiveRecord class overrides the ActiveRecord::getDbConnection().
Set the setCache Cache property to an ICache object to allow the active record gateway to cache the table meta data information.
- TComponent
-
TActiveRecordManager
Package: System\Data\ActiveRecord
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/ActiveRecord/TActiveRecordManager.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/ActiveRecord/TActiveRecordManager.php
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public
|
|
protected
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
setInvalidFinderResult(
Define the way an active record finder react if an invalid magic-finder invoked |
string |
DEFAULT_GATEWAY_CLASS |
'System.Data.ActiveRecord.TActiveRecordGateway' |
GLOBAL_RAISE_EVENT_LISTENER
|