Simple doctrine usage implementation