Throw exceptions on failure
Merge pull request #21 from thewilkybarkid/doctrine-exception

Throw exceptions in the Doctrine type