doctrine/doctrine2 — pull request #1167 by roukmoute (2014-10-21 13:07:06+00:00)
Title: use add() instead of [] notation

Update addMethodTemplate.

removeElement() is being used in the remover method, using add()
in the adder is more consistent with the remover.