Added support for non-numeric IDs used with Postgres
Merge pull request #3449 from SuiteTea/feature/postgres-non-integer-ids

Added support for non-numeric IDs used with Postgres
use php 5.4 closures see #3687
Merge branch '4.1'
Fix bug introduced a few versions ago.
Merge branch '4.1'