So, the Edit::setGroups() class only allowed an array of strings, instead of instances of GroupInterface. That's super dumb, because the other methods all only take instances of GroupInterface, so I used the array_walk() function to loop through created a new array and converted string names to group objects, and leave them be otherwise.
So, the Edit::setGroups() class only allowed an array of strings, instead of instances of GroupInterface. That's super dumb, because the other methods all only take instances of GroupInterface,
so I used thecreated a new array and converted string names to group objects, and leave them be otherwise.array_walk()
function to loop through