Doctrine integration for the Synapse framework