doctrine/doctrine2 — pull request #235 by holtkamp (2011-12-22 11:41:01+00:00)
Title: Allow ExporterDrivers that implement the exportClassMetadata() function to return false

Allow ExporterDrivers that implement the exportClassMetadata() function to return FALSE when no content is available/needs to be written to a file by the AbstractExporter, preventing empty files to be generated foreach processed ClassMetadataInfo instance.

I'm currently generating Data Transfer Object class for my Entities, but not all Entities require it. Based on an Annotation I determine which DTO's will be generated and return FALSE otherwise. Currently this 'negative' return is not respected and a lot of empty files are created.