Skip to content

Releases: OssiPesonen/Elixir

0.1.7

24 Jun 13:11
f85f4df
Compare
Choose a tag to compare

Introduced a magic method fix for the previous release, which now strips the $alias from a join in the following cases:

  • $excludeAliases is set to TRUE
  • $join matches $alias
  • $alias is empty (empty string or NULL)

This will potentially change built SQL clauses without breaking them, if you've passed the table name to $alias creating a duplicate.

    ->join('parent', 'child', 'child', 'child.fk_parent = parent.id')
    // INNER JOIN child child ON child.fk_parent = parent.id

This will now remove the second child from the SQL.

0.1.6

24 Jun 12:29
7168dab
Compare
Choose a tag to compare

Extended the QueryBuilder's join clauses to enable the exclusion of aliases from the query either completely, or on a join basis.

0.1.5

10 Apr 18:55
7b4f4eb
Compare
Choose a tag to compare

Added a safety feature where using multiple where() calls after the initial one get pushed to use andWhere(). This protects the developer from making a mistake when building the query WHERE conditions. Also, if the developer begins the WHERE clause by calling andWhere(), the WHERE clause will begin with WHERE (1 = 1) and all conditions after that will be added to the SQL as intended.

0.1.4

28 Mar 17:40
Compare
Choose a tag to compare

Added extended parameter types for array types

0.1.3

20 Mar 11:01
3aaca80
Compare
Choose a tag to compare

Lowered PHP settings to 7.1 and added .gitattributes so tests folder wont get archived

0.1.2

06 Mar 19:08
Compare
Choose a tag to compare

Extended tests to cover both ExpressionBuilder and CompositeExpression classes

0.1.1

06 Mar 19:01
Compare
Choose a tag to compare

Removed mistakenly committed vendor and .idea folders. After this installed .gitignore with correct rules.

0.1.0

06 Mar 15:18
Compare
Choose a tag to compare

Initial commit