Add basic mapping for doctrine

* Need to fix tests
Fix tests to use doctrine
Merge pull request #1 from yvoyer/feature/doctrine-support

Feature/doctrine support