Hello, as in ORM to receive phoneNumberData

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roman042
    Member
    • Jun 2017
    • 64

    Hello, as in ORM to receive phoneNumberData

    Hello, as in ORM to receive phoneNumberData, for example:

    $entityManager = $this->getEntityManager();
    $contact = $entityManager->getRepository('Contact')->get('592c345564a3e43c3');
    $phoneNumberData = $contact->get('phoneNumberData');

    Returns a blank, although phone numbers are
  • roman042
    Member
    • Jun 2017
    • 64

    #2
    Thanks, I found the solution myself!
    $entityManager = $this->getEntityManager();
    $contact = $entityManager->getRepository('Contact')->get('592c345564a3e43c3');
    $phoneNumberData = $this->getEntityManager()->getRepository('PhoneNumber')->getPhoneNumberData($contact);

    Comment

    • Shuan Paul
      Junior Member
      • Jun 2017
      • 8

      #3

      $ curl -X POST https://textbelt.com/text \ --data-urlencode phone='5557727420' \ --data-urlencode message='Hello world' \ -d key=textbelt

      Comment

      Working...