I did set('invalid', true) on a PhoneNumber entity, then saved it. in phpMyAdmin the row for the number has 'invalid' set to true but when I open a Lead with that number it is not marked as invalid...
What is the proper procedure to set a phone number as invalid? Does the Lead entity look somewhere else for the data?
My code:
Update: It seems there is a second row with the same numeric value. Shouldn't `numeric` be unique? Is this a bug?
What is the proper procedure to set a phone number as invalid? Does the Lead entity look somewhere else for the data?
My code:
PHP Code:
$num = $PhoneNumberRepository->where(['numeric' => '06123456789'])->findOne(); // search using PhoneNumber repository
$num->set('invalid', true); $entityManager->saveEntity($num);
Update: It seems there is a second row with the same numeric value. Shouldn't `numeric` be unique? Is this a bug?
Comment