Namespace ICanBoogie\ActiveRecord
Classes summary
ActiveRecordCache | Abstract root class for an active records cache. |
CollectDependenciesEvent | Event class for the ICanBoogie\ActiveRecord::collect_dependencies
event. |
Connection | A connection to a databse. |
Connections | Connection collection. |
DateTimePropertySupport | Provides support for datetime properties. |
Helpers | Patchable helpers of the ActiveRecord package. |
Hooks | |
Model | Base class for activerecord models. |
Models | Model collection. |
Query | The class offers many features to compose model queries. Most query related
methods of the ICanBoogie\ActiveRecord\Model class create a ICanBoogie\ActiveRecord\Query object that is
returned for further specification, such as filters or limits. |
RunTimeActiveRecordCache | Cache records during run time. |
Statement | A database statement. |
Table | A representation of a database table. |
Interfaces summary
ActiveRecordCacheInterface | Interface for ActiveRecord cache. |
Traits summary
CreatedAtProperty | Implements a created_at property. |
DateTimeProperty | Implements a datetime property. |
UpdatedAtProperty | Implements a updated_at property. |
Exceptions summary
ActiveRecordException | Generic Active Record exception class. |
ConnectionAlreadyEstablished | Exception thrown in attempt to set the definition of an already established connection. |
ConnectionNotDefined | Exception thrown when a connection is not defined. |
ConnectionNotEstablished | Exception thrown when a connection cannot be established. |
ModelAlreadyInstantiated | Exception thrown in attempt to set/unset the definition of an already instantiated model. |
ModelNotDefined | Exception thrown when a requested model is not defined. |
RecordNotFound | Exception thrown when an active record cannot be found. |
ScopeNotDefined | Exception thrown when a scope is not defined. |
StatementInvalid | Exception thrown when a statement execution failed because of an error. |
Functions summary
get_model | Returns the requested model. |