Re:PHP Annotations Are a Horrible Idea
by adatta02 on Wednesday October 17, 2012 @12:00PM
(#4665016)
Your second example is actually how Doctrine 1.2+ works. You could define your models in a YAML file which was then transformed into PHP classes at runtime.
That of course, leads to the issue of having your configuration separate from your implementation/code.
That of course, leads to the issue of having your configuration separate from your implementation/code.