Modify the method to get all the metadaclasses to use the filter paramet...

Hi,

I needed to import the mapping of an existing database in order to create doctrine2 entities, but when you run the command, it throw an exception on every table without a primary key.

I tried to use the filter option, but the error still occurs because the exception was throw in the method which get all the metadata informations.

I added a method which get the metadata of some tables according to a filter.

This is linked with a request on doctrine2 : https://github.com/doctrine/doctrine2/pull/603

What are your thought bout my issue?