implementing doctrine filters when building configuration

Implementing Doctrine Filters when building configuration. (see: http://doctrine-orm.readthedocs.org/en/latest/reference/filters.html)  Please let me know if there is a better way to handle this!