than you need a hook for SIM and checking looks like this
Code:
$regoformId = $entity->get('fORMREGOId') if ($regoformId) { throw \Error('This SIM is used in other FORMREGO'); }
$regoformId = $entity->get('fORMREGOId') if ($regoformId) { throw \Error('This SIM is used in other FORMREGO'); }
Leave a comment: