TActiveRecordManager provides the default DB connection, default active record gateway, and table meta data inspector.
The default connection can be set as follows:
All new active record created after setting the DbConnection will use that connection unless the custom ActiveRecord class overrides the ActiveRecord::getDbConnection().
Set the Cache property to an ICache object to allow the active record gateway to cache the table meta data information.
Method Details |
createRecordGateway
|
getCache
Output |
ICache
| application cache. |
Exception |
|
getDbConnection
|
getInstance
|
getInvalidFinderResult
|
getRecordGateway
|
setCache
public void setCache |
(ICache $value ) |
Input |
ICache | $value | application cache |
Output |
Exception |
|
setDbConnection
Input |
TDbConnection | $conn | default database connection |
Output |
Exception |
|
setInvalidFinderResult
Define the way an active record finder react if an invalid magic-finder invoked
|