What am I doing wrong with this? If I just run this:
$region = EM_Locations::get(array('orderby'=>'region_name'));
all is good. However when I add in the array_unique:
$region = EM_Locations::get(array('orderby'=>'region_name'));
$reg = array_unique($region)
It breaks and get "EM_Location could not be converted to string"
You can add __toString() method for the
EM_Location
class.