Undelete a record via $bean

Hi there,

I'm trying to undelete a record marked as deleted with the folowwing instructions:

$account = BeanFactory::getBean('Accounts', 'myAccountId', array(), false);

$account->mark_undeleted();

$account->save();

In the database I can see the record is still deleted?

Am I missing something?

SugarCRM Entreprise 7.7.1.2

Thanks,

Sylvain