Entities/Administrators/View/Forms/AdministratorUpdateForm.php
public function setFieldValuesToAdministrator(Administrator $administrator)
    {
        parent::setFieldValues([
            parent::NAME_FIELD_NAME => $administrator->getName(),
            parent::USERNAME_FIELD_NAME => $administrator->getUsername(),
            parent::PASSWORD_FIELD_NAME => '',
            parent::PASSWORDCONFIRM_FIELD_NAME => '',
            parent::ROLES_FIELDSET_NAME => $administrator->getRoleIds(),
            parent::ACTIVE_FIELD_NAME => $administrator->getActive(),
        ]);
    }
public function setFieldValuesToAdministrator(Administrator $administrator)
    {
        parent::setFieldValues([
            parent::NAME_FIELD_NAME => $administrator->getName(),
            parent::USERNAME_FIELD_NAME => $administrator->getUsername(),
            parent::PASSWORD_FIELD_NAME => '',
            parent::PASSWORDCONFIRM_FIELD_NAME => '',
            parent::ROLES_FIELDSET_NAME => $administrator->getRoleIds(),
            parent::ACTIVE_FIELD_NAME => $administrator->getActive(),
        ]);
    }
public function setFieldValuesToAdministrator ( Administrator $ administrator ) { parent :: setFieldValues ( [ parent :: NAME_FIELD_NAME => $ administrator -> getName ( ) , parent :: USERNAME_FIELD_NAME => $ administrator -> getUsername ( ) , parent :: PASSWORD_FIELD_NAME => '' , parent :: PASSWORDCONFIRM_FIELD_NAME => '' , parent :: ROLES_FIELDSET_NAME => $ administrator -> getRoleIds ( ) , parent :: ACTIVE_FIELD_NAME => $ administrator -> 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