public function getApiObjects($entities, $locale)
    {
        return array_map(
            function($entity) use ($locale) {
                return $this->getApiObject($entity, $locale);
            },
            $entities
        );
    }