title: Should I use YAML/XML or annotation mapping in Doctrine 2?
body: <p>I use Doctrine 2 as ORM in Symfony framework. Using annotation-based mapping for entities, I would have to write lot of code (setters and getters, mapping information etc.). Using YAML/XML I won't have to write much just the column definition and metadata. In Doctrine documentation, they use mostly annotations in example with few using YAML or XML.</p>
  
  <p>Should I use YAML/XML or annotations?</p>
  
  <p>For annotations, I can find the documentation for every annotation at <a href="http://docs.doctrine-project.org/en/latest/reference/annotations-reference.html" rel="nofollow noreferrer">http://docs.doctrine-project.org/en/latest/reference/annotations-reference.html</a>. I couldn't find the equivalents of annotation in YAML or XML though; how do I convert the annotations to equivalent YAML/XML expressions?</p>