Releases: skipperbent/pecee-pixie
Releases · skipperbent/pecee-pixie
Version 4.4.1
- Added support for removing table from query by calling
table()with no argument. - Minor updates to the documentation.
Version 4.4.0
- Added new
EventArgumentsclass. - Moved
EventHandlerclass to new namespace:\Pecee\Pixie\Event\EventHandler. - Simplified arguments for event callbacks by using the new
EventArgumentsclass as the only parameter. - Added support for unions in
QueryBuilderHandler. - Added shortcut for
registerEventinConnectionclass. - Updated documentation to reflect new changes.
- Added unit-tests for new sql-union functionality.
- Minor optimisations + cleanup.
Release notes
This release contains changes that might break your project. Please read the release notes carefully before updating in a production environment.
-
Moved
EventHandlerclass to new namespace:\Pecee\Pixie\Event\EventHandler.
Please change all class references for\Pecee\Pixie\EventHandlerto the new namespace\Pecee\Pixie\Event\EventHandler. -
Simplified arguments for event callbacks by using the new
EventArgumentsclass as the only parameter.
Event callbacks no longer have an insane amount of parameters. Instead it only returns aEventArgumentsobject which contains all information for the event.
Example:
$qb->registerEvent(EventHandler::EVENT_AFTER_DELETE, 'my_table', function(EventArguments $arguments)
{
$bindings = $arguments->getQuery()->getBindings();
$arguments
->getQueryBuilder()
->table('person_details')
->where('person_id', $binding[0])
->delete();
});Please refer to the documentation for more info.
Version 4.3.0
- Events now fires properly when executing raw queries.
- Added new event for raw queries.
- EventHandler now returns parameters for events in a better order.
- Fixed lastQuery not being availible in some instances when using select.
- Fixed types and phpDocs.
Release note
- This release has changed the order of the parameters for events. The order is now:
QueryObject,QueryBuilderHandler, ... other params if available like start time, etc.
Version 4.2.6
- Fixed bool PDO parameters inserting null value when using transactions.
Version 4.2.5
- Removed PDOException error-code as it's not an integer which is what exceptions espect.
Version 4.2.4
Re-release due to packagist.org error.
- Exception fixes.
Version 4.2.2
- Changed type for code parameter in
Exceptionclass, as some exceptions doesn't provide proper data-type.
Version 4.2.1
- Fixed parameter errors on Exception.
Version 4.2.0
PdoExceptionhas been replaced withPecee\Pixie\Exceptionthat includes methods for fetching query-object for easier debugging.- Last-query is now set before query is executed.
- Fixed issues with using
$qb->raw()with bindings as field name. - Removed ConnectionAdapters\Exception.
- Optimisations + bugfixes.
Version 4.1.3
- Added option to get
QueryObjectfrom last executed query (issue: #44)