Skip to content

Releases: skipperbent/pecee-pixie

Version 4.4.1

01 Mar 15:11
8b865e1
Compare
Choose a tag to compare
  • Added support for removing table from query by calling table() with no argument.
  • Minor updates to the documentation.

Version 4.4.0

01 Mar 13:52
c945140
Compare
Choose a tag to compare
  • Added new EventArguments class.
  • Moved EventHandler class to new namespace: \Pecee\Pixie\Event\EventHandler.
  • Simplified arguments for event callbacks by using the new EventArguments class as the only parameter.
  • Added support for unions in QueryBuilderHandler.
  • Added shortcut for registerEvent in Connection class.
  • 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 EventHandler class to new namespace: \Pecee\Pixie\Event\EventHandler.
    Please change all class references for \Pecee\Pixie\EventHandler to the new namespace \Pecee\Pixie\Event\EventHandler.

  • Simplified arguments for event callbacks by using the new EventArguments class as the only parameter.
    Event callbacks no longer have an insane amount of parameters. Instead it only returns a EventArguments object 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

27 Feb 07:35
f4e8848
Compare
Choose a tag to compare
  • 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

26 Feb 18:23
3f13540
Compare
Choose a tag to compare
  • Fixed bool PDO parameters inserting null value when using transactions.

Version 4.2.5

16 Jan 23:53
b674459
Compare
Choose a tag to compare
  • Removed PDOException error-code as it's not an integer which is what exceptions espect.

Version 4.2.4

16 Jan 15:49
384aa54
Compare
Choose a tag to compare

Re-release due to packagist.org error.

  • Exception fixes.

Version 4.2.2

16 Jan 12:32
fcff77d
Compare
Choose a tag to compare
  • Changed type for code parameter in Exception class, as some exceptions doesn't provide proper data-type.

Version 4.2.1

16 Jan 10:55
2781c9b
Compare
Choose a tag to compare
  • Fixed parameter errors on Exception.

Version 4.2.0

16 Jan 10:28
934e655
Compare
Choose a tag to compare
  • PdoException has been replaced with Pecee\Pixie\Exception that 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

16 Jan 08:44
cbc66cf
Compare
Choose a tag to compare
  • Added option to get QueryObject from last executed query (issue: #44)