Switch to new mapper interface and some fixes
An exception is now thrown if no search fields are defined
Merge pull request #3 from tomphp/dev/get-working

Dev/get working