fixed deprecation error about addCollection parameter change in symfony 2.2