Fix broken support for chained orderBy(). Fixes issue #65
Adding onHydrate event and onEvent to Domain Objects
Adding another test for finding
Default string coercion strategy for domain objects

Produces a string containing the table name and a stringified version
of the object identity. E.g. per the test case, an `Animal` with
`id=1` is stringified to `Animal[id=1]`.
Follow code style
Throw more specific exception when 0 rows found

Applications will want to handle a 0-row result differently from an
n-row result from a call to `Collection::one()`.

E.g. a 0-row result might be rethrown as an HTTP 404 error, while an
n-row result might indicate a data integrity error (i.e. an HTTP
500 error).

Semantically I don't think `NotFoundException` extends
`ConstraintException`, but it's implemented this way for backwards
compatibility.
Merge pull request #83 from lox/not-found-exception

Throw more specific exception when 0 rows found
Merge pull request #82 from lox/domain-object-stringification

Better __toString() for domain objects and identities
Merge pull request #81 from judsonco/add-hydrate-event-to-domain-objects

Adding Hydrate event and new onEvent callbacks (Fixes #70)
Rolled back Hydrate event and onXXX events.

The event is now afterHydrate to be consistent with the other events and
it's only fired on hydration, not during construction.
Provide method to compare identities
Support a whitelist as a second param to DomainObject::load() that allows for filtering
Added support for binding arrays with `x IN ?` syntax
Add common aggregate functions to the Collection
Revert "Added support for binding arrays with `x IN ?` syntax"

This reverts commit 9396f89f710b2997868ae3782a369d6002359564.
Add DeadlockException

Make it easier to handle deadlocks by throwing a specific exception.
Merge pull request #84 from lox/identity-comparison

Provide a way to compare domain object identities
Detect deadlocks using error codes
Quote criteria in magical finders
Merge pull request #89 from dannymidnight/master

Quote criteria in magical finders