I've two entities in symfony : first "User" entity that has a $addresses attribute that is a one to many relation to the second entity that named "UserAddresses" with fields:$id,$address(string). i want to use symfony form builder to create registration page for my website and i want a text input for the user to add his address to his account in the registration page. when i use :
$builder->add('addresses', 'entity', array(
'class' => 'XXX\UserBundle\Entity\UserAddresses',
'property' => 'address',
'label' => 'label.address',
'mapped' => false,
'translation_domain' => 'labels'))
;
i see a input selectbox that shows the user addresses(that is already null) in the registration page and user cannot add his address to it. what should i do to replace this input element with an input type='text' element for the user to type his address