mothership-ec / cog-user

User Cogule
Other
0 stars 1 forks source link

Allow Edit::setGroups() to take Group objects #53

Closed thomasjthomasj closed 8 years ago

thomasjthomasj commented 8 years ago

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.