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/InstanceQuery.php 1 location
|
@@ 210-219 (lines=10) @@
|
| 207 |
|
* |
| 208 |
|
* @return ChildInstance|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/SubscriptionQuery.php 1 location
|
@@ 240-249 (lines=10) @@
|
| 237 |
|
* |
| 238 |
|
* @return ChildSubscription|array|mixed the result, formatted by the current formatter |
| 239 |
|
*/ |
| 240 |
|
protected function findPkComplex($key, ConnectionInterface $con) |
| 241 |
|
{ |
| 242 |
|
// As the query uses a PK condition, no limit(1) is necessary. |
| 243 |
|
$criteria = $this->isKeepQuery() ? clone $this : $this; |
| 244 |
|
$dataFetcher = $criteria |
| 245 |
|
->filterByPrimaryKey($key) |
| 246 |
|
->doSelect($con); |
| 247 |
|
|
| 248 |
|
return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
/** |
| 252 |
|
* 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 |