Doctrine 2 YAML reference

If you are working with Doctrine 2 and its YAML configuration files for the object mapping, you may find the documentation lacking some details.

Here is a gist of all the YAML syntax possible:

It is based on this blog article, completed, and turned into a git repository (thanks to github), so anyone can fork it and improve it.