lox/pheasant — pull request #11 by mtibben (2012-11-18 22:50:55+00:00)
Title: Adds test and fix for when an array is passed to Criteria

When the Criteria is instantiated with an array as an argument, the code suggests that the items in the array should be used as AND conditions.

However, the way the `->and()` and `->or()` methods have been implemented, the whole criteria sql is overwritten when one of these are called.

I'm not sure of the intended behaviour, so this patch fixes the issue in the constructor rather than modifying the `->and()` and `->or()` methods