i have created my form in symfony2 form type and i used an entity type for user to choose his/her address from it like this:
$builder->add('sladdress', 'entity', array(
'class' => 'myClass\UserBundle\Entity\UserAddresses',
'property' => 'address',
'label' => 'label.your_addresses_list',
'translation_domain' => 'labels',
'mapped' => false
));
i have an UserAddresses Entity which has a ManyToOne relation to the Users Entity and saves the user's Addresses. the problem remains is that what should i do so that sladdress type loads only the Addresses that's are owned to the user?(By default the sladdress form field loads all of the addresses that exist in this entity) what is the fast way?