Releases: ICanBoogie/ActiveRecord
Releases · ICanBoogie/ActiveRecord
v4.0.0
Updated requirements
- PHP 5.6+
icanboogie/prototype
v3.0
New features
- Custom queries
DateTimePropertySupport::ensureNotEmpty()
Model::query()
Backward incompatible changes
- Replace patchable get_model with a provider
- Remove
Table::query()
Fixes
- Fix issue with get_class() and null on PHP 7.2
v2.3.0
Updated requirements
icanboogie/prototype
v2.3.0
Backward incompatible changes
- The
fields
schema key is no more Table::install()
andTable::uninstall()
return void- Renamed
Statment::fetchAndClose()
asone()
New features
- Introducing connection drivers
- Added
Schema
andSchemaColumn
- Added
Schema::filter()
- Added
Connection::cast_value()
- Added
Driver::render_column()
- Added prototype bindings
StatementInvocationFailed
Other changes
Helper::patch()
now returns previous callable
Fixed
RuntimeActiveRecordCache
casing- Default table name prefix
- 'foreign' + 'primary' shouldn't have 'indexed'
v2.1.0
- New ActiveRecord cache system.
- Added
conditions
andconditions_args
getters toQuery
. - Added the
parent_model
property toModel
instances. - Added the
unprefixed_name
getter toTable
. - The
MODEL_ID
constant can be used by ActiveRecord subclasses to define their model id, instead of passing it during__construct
. Query::joins
is now an alias toQuery::join
.- Queries can be used as filter argument.
- Queries can be used with
Query::join
. - Added
alias
,mode
andon
options toQuery::join
. - Replaced
ActiveRecordException
with anException
interface which is implemented by all the exceptions defined by the package. - Added
install()
,uninstall()
andis_installed()
toModels
. - Added
pairs
getter toStatement
. Query::delete()
can be used withjoin()
.- Refactored relations.
- Using PSR-4
Support for ICanBoogie's auto-config
The package supports the auto-config feature of the framework ICanBoogie and provides
the following:
- A synthesizer for the
activerecord_connections
config, created from theactiverecord
fragments. - A lazy getter for the
ICanBoogie\Core::$connections
property, that return aConnections
instance created with theactiverecord_connections
config. - A lazy getter for the
ICanBoogie\Core::$db
property, that return the connection named
primary
from theICanBoogie\Core::$connections
property.