| @@ 173-182 (lines=10) @@ | ||
| 170 | * |
|
| 171 | * @return ChildTask|array|mixed the result, formatted by the current formatter |
|
| 172 | */ |
|
| 173 | protected function findPkComplex($key, ConnectionInterface $con) |
|
| 174 | { |
|
| 175 | // As the query uses a PK condition, no limit(1) is necessary. |
|
| 176 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 177 | $dataFetcher = $criteria |
|
| 178 | ->filterByPrimaryKey($key) |
|
| 179 | ->doSelect($con); |
|
| 180 | ||
| 181 | return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * Find objects by primary key |
|
| @@ 193-202 (lines=10) @@ | ||
| 190 | * |
|
| 191 | * @return ChildUser|array|mixed the result, formatted by the current formatter |
|
| 192 | */ |
|
| 193 | protected function findPkComplex($key, ConnectionInterface $con) |
|
| 194 | { |
|
| 195 | // As the query uses a PK condition, no limit(1) is necessary. |
|
| 196 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 197 | $dataFetcher = $criteria |
|
| 198 | ->filterByPrimaryKey($key) |
|
| 199 | ->doSelect($con); |
|
| 200 | ||
| 201 | return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| 205 | * Find objects by primary key |
|