Jira issue originally created by user romanb:
The PHP mapping driver is currently not documented but should be.
Comment created by @beberlei:
In that regard the question if we should change the PhpDriver not to include another file for the metadata loading, but call a static loadMetadata method on each entity that accepts the ClassMetadata instance.
Comment created by @jwage:
I think we should allow both. Either offer a new driver type or add an option to PhpDriver?
Comment created by romanb:
I think an option on PHPDriver would be enough.
What the PHP Driver currently not has compared to other drivers is validation. There should be some additional checks after the ClassMetadata was filled.
I added a StaticPHPDriver here http://github.com/jwage/doctrine2/commit/27a0058b89d5fc4b413f0b1a7542c57cec60e1c6
We can't add a option to PHPDriver since it extends from AbstractFileDriver and requires something a little more custom.
Issue was closed with resolution "Fixed"