Closed amitaibu closed 8 years ago
@pfrenssen Seems that OgRole::set() is always called from \Drupal\Core\Config\Entity\ConfigEntityStorage::doSave
, so we shouldn't throw an exception. Not a perfect solution, but we can simply return early without doing any change. Sounds ok?
actually, maybe we can check if the value has changed, and then throw an exception. I'll check..
Closed in favor of #278
While working on #274 I saw an error trying to re-save an OgRole. Steps to reproduce is using the helper method from #274:
We get the error:
Drupal\og\Exception\OgRoleException: The id cannot be changed.
fromog/src/Entity/OgRole.php:258
/cc @pfrenssen