hasField('secret')) { $entity->get('secret')->pre_hashed = TRUE; } parent::restore($entity); } }