how do I set value for the mobile_number field using entity wrappers? Currently, this field is attached to an entity and I'm trying as below.
$entity_type = 'mp_customer';
$entity = entity_create($entity_type, array('type' => 'mp_customer'));
$wrapper = entity_metadata_wrapper($entity_type, $entity);
$wrapper->field_phone = "0777123456";
This gives an PDO Exception .... field_phone_value cannot be null....
Adding more This field needs more data to store in field_data_field_phone, those are: {field_phone_value} {field_phone_country} {field_phone_local_number} {field_phone_verified} {field_phone_tfa}
This field was created using this module : https://www.drupal.org/project/mobile_number