public function prepareLinkedObjects() { $object_type = (yield wait_for($ent->genObjectType())); $config = (yield wait_for($object_type->genPropertyConfig())); $urls = array(); foreach ($config->getFlatProperties(array(OGPropertyConst::TYPE_REFERENCE)) as $property) { $value = $ent->getPropertyForSelector($property->getFullyQualifiedNameXxx()); if (is_array($value)) { $urls = array_merge($urls, $value); } else { $urls[] = $value; } } $urls = array_filter($urls); (yield wait_for_result($ent->genAssociatedObjects('all-urls', $urls))); }
function foo() { (yield wait_for_result(new GdpAggregationFilter($this->getViewerContext(), $this))); }