This is wrong. you should read all tags, not only the first one. ``$attributes`` is not the array of attributes here but the array of ``doctrine_phpcr.initializer`` tags (each one being an array of attributes)

And using ``null`` looks wrong to me as you use it as key. Btw, is the alias really needed ? you don't use it