Fix for omition of the glue on WHERE after the first call in query builder #956

Closed
wants to merge 13 commits into
from
Commits on Mar 3, 2012
  1. Adding a way to be able to change the glue when appending elements. W…

    Naouak committed Mar 3, 2012
    …ill be usefull for WHERE statement in which the glue can either be "AND" or "OR"
  2. Adding nesting

    Naouak committed Mar 3, 2012
  3. Fixing code style

    Naouak committed Mar 3, 2012
  4. Fixing test for windows

    Naouak committed Mar 3, 2012
    Test were using "\n" for assertion and function used PHP_EOL for line ending.
    On windows every test failed because of that.
  5. Adding support for nesting into where function.

    Naouak committed Mar 3, 2012
    Usage should be :
    $q->where(
    array(
    "a=1",
    "b=1",
    array(
    "c=1",
    array("c=2","glue"=>"OR")
    ),
    "AND");
    
    Should generate :
    WHERE (a=1 AND b=1 AND (c=1 OR c=2))
  6. Fixing forgotten assignation in the constructor.

    Naouak committed Mar 3, 2012
    Modifying where function according to new constructor parameters.
    Updating Doc Block.
Commits on Mar 4, 2012