src/cli/Database/Base/ChannelQuery.php 1 location
|
@@ 200-209 (lines=10) @@
|
| 197 |
|
* |
| 198 |
|
* @return ChildChannel|array|mixed the result, formatted by the current formatter |
| 199 |
|
*/ |
| 200 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 201 |
|
{ |
| 202 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 203 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 204 |
|
$dataFetcher = $criteria |
| 205 |
|
->filterByPrimaryKey($key) |
| 206 |
|
->doSelect($con); |
| 207 |
|
|
| 208 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
/** |
| 212 |
|
* Find objects by primary key |
src/cli/Database/Base/ConnectionQuery.php 1 location
|
@@ 215-224 (lines=10) @@
|
| 212 |
|
* |
| 213 |
|
* @return ChildConnection|array|mixed the result, formatted by the current formatter |
| 214 |
|
*/ |
| 215 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 216 |
|
{ |
| 217 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 218 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 219 |
|
$dataFetcher = $criteria |
| 220 |
|
->filterByPrimaryKey($key) |
| 221 |
|
->doSelect($con); |
| 222 |
|
|
| 223 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
/** |
| 227 |
|
* Find objects by primary key |
src/cli/Database/Base/UserQuery.php 1 location
|
@@ 210-219 (lines=10) @@
|
| 207 |
|
* |
| 208 |
|
* @return ChildUser|array|mixed the result, formatted by the current formatter |
| 209 |
|
*/ |
| 210 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 211 |
|
{ |
| 212 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 213 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 214 |
|
$dataFetcher = $criteria |
| 215 |
|
->filterByPrimaryKey($key) |
| 216 |
|
->doSelect($con); |
| 217 |
|
|
| 218 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
/** |
| 222 |
|
* Find objects by primary key |
src/cli/Database/Base/InputQuery.php 1 location
|
@@ 220-229 (lines=10) @@
|
| 217 |
|
* |
| 218 |
|
* @return ChildInput|array|mixed the result, formatted by the current formatter |
| 219 |
|
*/ |
| 220 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 221 |
|
{ |
| 222 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 223 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 224 |
|
$dataFetcher = $criteria |
| 225 |
|
->filterByPrimaryKey($key) |
| 226 |
|
->doSelect($con); |
| 227 |
|
|
| 228 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
/** |
| 232 |
|
* Find objects by primary key |
src/cli/Database/Base/InstanceQuery.php 1 location
|
@@ 220-229 (lines=10) @@
|
| 217 |
|
* |
| 218 |
|
* @return ChildInstance|array|mixed the result, formatted by the current formatter |
| 219 |
|
*/ |
| 220 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 221 |
|
{ |
| 222 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 223 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 224 |
|
$dataFetcher = $criteria |
| 225 |
|
->filterByPrimaryKey($key) |
| 226 |
|
->doSelect($con); |
| 227 |
|
|
| 228 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
/** |
| 232 |
|
* Find objects by primary key |
src/cli/Database/Base/SubscriptionQuery.php 1 location
|
@@ 255-264 (lines=10) @@
|
| 252 |
|
* |
| 253 |
|
* @return ChildSubscription|array|mixed the result, formatted by the current formatter |
| 254 |
|
*/ |
| 255 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 256 |
|
{ |
| 257 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 258 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 259 |
|
$dataFetcher = $criteria |
| 260 |
|
->filterByPrimaryKey($key) |
| 261 |
|
->doSelect($con); |
| 262 |
|
|
| 263 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
/** |
| 267 |
|
* Find objects by primary key |