Hello,
is possible to test formula for Note entity in Sandbox?
is possible to test formula for Note entity in Sandbox?
{
"object": true
}
if ( $entity->isNew() && substr($entity->get('post'), 0, 4) == '#Sms' )
{
$parentEntity = $this->em->getRDBRepository($entity->get('parentType'))
->where([
'id' => $entity->get('parentId'),
])
->findOne();
$toNumber = $parentEntity->get('phoneNumber');
$sms = $this->createSms($this->user, $entity->get('post'), $toNumber);
$this->smsSender->send($sms);
}
Comment