Automatically register Doctrine entities