An identifier interface which works with Symfony2 and Doctrine