Using Traits in Doctrine Entities

Nice article Nicolas.

How would the traits work with mapping metadata? Annotations is pretty clear, but how about mappings in XML or YAML?

Scott