I had to create a relationship with two entities in a project. I am using Twitter Bootstrap markup in my Symfony2 project. This is my notes about how I implemented a re-usable form field that adds dynamic input text using jQuery. This post is an echo on my original Answer attempt on StackOverflow.