Entities/Permissions/View/Forms/PermissionUpdateForm.php
public function setFieldValuesToPermission(Permission $permission)
    {
        parent::setFieldValues([
            parent::TITLE_FIELD_NAME => $permission->getTitle(),
            parent::DESCRIPTION_FIELD_NAME => $permission->getDescription(),
            parent::ROLES_FIELDSET_NAME => $permission->getRoleIds(),
            parent::ACTIVE_FIELD_NAME => $permission->getActive(),
        ]);
    }
public function setFieldValuesToPermission(Permission $permission)
    {
        parent::setFieldValues([
            parent::TITLE_FIELD_NAME => $permission->getTitle(),
            parent::DESCRIPTION_FIELD_NAME => $permission->getDescription(),
            parent::ROLES_FIELDSET_NAME => $permission->getRoleIds(),
            parent::ACTIVE_FIELD_NAME => $permission->getActive(),
        ]);
    }
public function setFieldValuesToPermission ( Permission $ permission ) { parent :: setFieldValues ( [ parent :: TITLE_FIELD_NAME => $ permission -> getTitle ( ) , parent :: DESCRIPTION_FIELD_NAME => $ permission -> getDescription ( ) , parent :: ROLES_FIELDSET_NAME => $ permission -> getRoleIds ( ) , parent :: ACTIVE_FIELD_NAME => $ permission -> getActive ( ) , ] ) ; }
note could subclass here for initial get form but simpler to just add this fn
note could subclass here for initial get form but simpler to just add this fn