Doctrine Common

[GH-266] Add a new method to use a filter before extracting the metadata