Changeset View
Changeset View
Standalone View
Standalone View
src/symbols/PhutilClassMapQuery.php
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | if ($expand !== null) { | ||||
'"%s", but the query specifies an "expand method" ("%s") without '. | '"%s", but the query specifies an "expand method" ("%s") without '. | ||||
'specifying a "unique method". Class maps which support expansion '. | 'specifying a "unique method". Class maps which support expansion '. | ||||
'must have unique keys.', | 'must have unique keys.', | ||||
$ancestor, | $ancestor, | ||||
$expand)); | $expand)); | ||||
} | } | ||||
} | } | ||||
$objects = id(new PhutilSymbolLoader()) | $objects = (new PhutilSymbolLoader()) | ||||
->setAncestorClass($ancestor) | ->setAncestorClass($ancestor) | ||||
->setContinueOnFailure($this->continueOnFailure) | ->setContinueOnFailure($this->continueOnFailure) | ||||
->loadObjects(); | ->loadObjects(); | ||||
// Apply the "expand" mechanism, if it is configured. | // Apply the "expand" mechanism, if it is configured. | ||||
if ($expand !== null) { | if ($expand !== null) { | ||||
$list = array(); | $list = array(); | ||||
foreach ($objects as $object) { | foreach ($objects as $object) { | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0