Differential D13583 Diff 32831 src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
| Show First 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | $query = newv(get_class($this), array()) | ||||
| ->withIDs(array((int)$cursor)); | ->withIDs(array((int)$cursor)); | ||||
| $this->willExecuteCursorQuery($query); | $this->willExecuteCursorQuery($query); | ||||
| $object = $query->executeOne(); | $object = $query->executeOne(); | ||||
| if (!$object) { | if (!$object) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Cursor "%s" does not identify a valid object.', | 'Cursor "%s" does not identify a valid object in query "%s".', | ||||
| $cursor)); | $cursor, | ||||
| get_class($this))); | |||||
| } | } | ||||
| return $object; | return $object; | ||||
| } | } | ||||
| /** | /** | ||||
| * @task paging | * @task paging | ||||
| ▲ Show 20 Lines • Show All 1,451 Lines • Show Last 20 Lines | |||||