Skip to content

Releases: ICanBoogie/ActiveRecord

v4.0.0

17 Mar 15:15
Compare
Choose a tag to compare

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

24 Dec 00:09
Compare
Choose a tag to compare

Updated requirements

  • icanboogie/prototype v2.3.0

Backward incompatible changes

  • The fields schema key is no more
  • Table::install() and Table::uninstall() return void
  • Renamed Statment::fetchAndClose() as one()

New features

  • Introducing connection drivers
  • Added Schema and SchemaColumn
  • 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

23 Oct 13:48
Compare
Choose a tag to compare
  • New ActiveRecord cache system.
  • Added conditions and conditions_args getters to Query.
  • Added the parent_model property to Model instances.
  • Added the unprefixed_name getter to Table.
  • 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 to Query::join.
  • Queries can be used as filter argument.
  • Queries can be used with Query::join.
  • Added alias, mode and on options to Query::join.
  • Replaced ActiveRecordException with an Exception interface which is implemented by all the exceptions defined by the package.
  • Added install(), uninstall() and is_installed() to Models.
  • Added pairs getter to Statement.
  • Query::delete() can be used with join().
  • Refactored relations.
  • Using PSR-4

Support for ICanBoogie's auto-config

21 Mar 09:32
Compare
Choose a tag to compare

The package supports the auto-config feature of the framework ICanBoogie and provides
the following:

  • A synthesizer for the activerecord_connections config, created from the activerecord
    fragments.
  • A lazy getter for the ICanBoogie\Core::$connections property, that return a Connections
    instance created with the activerecord_connections config.
  • A lazy getter for the ICanBoogie\Core::$db property, that return the connection named
    primary from the ICanBoogie\Core::$connections property.