getContainerEntity(); $images = elgg_get_entities_from_relationship(array( 'type' => 'object', 'subtype' => 'image', 'relationship' => 'belongs_to_batch', 'relationship_guid' => $batch->getGUID(), 'inverse_relationship' => true, )); echo '