symfony/Yaml — pull request #11 by petougao (2014-10-22 14:16:26+00:00)
Title: Proper inheritance when merging references and inline

Items now get referenced sub-properties merged:

refDef: &reference
subitem:
refUnique: true
shared: "Reference value"

item:
<<: *reference
subitem:
itemUnique: true
shared: "Item value"

OLD RESULT:

item:
subitem:
itemUnique: true
shared: "Item value"

NEW RESULT

item:
subitem:
itemUnique: true
shared: "Item value"
refUnique: true

Inheritance is reversed when reference is pulled-in after all the elements:

item:
subitem:
itemUnique: true
shared: "Item value"
<<: *reference

NEW RESULT

item:
subitem:
itemUnique: true
shared: "Reference value"
refUnique: true

Inline definitions will pick-up the same behavior.