packages/core/src/Models/Task/Base/TaskQuery.php 1 location
|
@@ 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 |
packages/core/src/Models/User/Base/UserQuery.php 1 location
|
@@ 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 |
packages/selfprice/src/Models/Selfprice/Base/SelfpriceQuery.php 1 location
|
@@ 178-187 (lines=10) @@
|
| 175 |
|
* |
| 176 |
|
* @return ChildSelfprice|array|mixed the result, formatted by the current formatter |
| 177 |
|
*/ |
| 178 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 179 |
|
{ |
| 180 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 181 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 182 |
|
$dataFetcher = $criteria |
| 183 |
|
->filterByPrimaryKey($key) |
| 184 |
|
->doSelect($con); |
| 185 |
|
|
| 186 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
/** |
| 190 |
|
* Find objects by primary key |