So I've been able to retrieve phoneNumberData from related Entities using
is there a way to set phoneNumberData using the ORM? It seems to work okay when i use the entity->set method if it is just a single number but when there are multiples it becomes a problem.
is there a method to set Phone number data for a specific entity, and if not how do you set multiple phone numbers to a related entity?
Code:
$contactId = $entity->get('contactsId'); $contact = $entityManager->getEntity('Contact', $contactId); $phones = $this->getEntityManager()->getRepository('PhoneNumber')->getPhoneNumberData($contact);
is there a method to set Phone number data for a specific entity, and if not how do you set multiple phone numbers to a related entity?
Comment