| @@ 253-265 (lines=13) @@ | ||
| 250 | * |
|
| 251 | * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter |
|
| 252 | */ |
|
| 253 | public function findPks($keys, ConnectionInterface $con = null) |
|
| 254 | { |
|
| 255 | if (null === $con) { |
|
| 256 | $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); |
|
| 257 | } |
|
| 258 | $this->basePreSelect($con); |
|
| 259 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 260 | $dataFetcher = $criteria |
|
| 261 | ->filterByPrimaryKeys($keys) |
|
| 262 | ->doSelect($con); |
|
| 263 | ||
| 264 | return $criteria->getFormatter()->init($criteria)->format($dataFetcher); |
|
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * Filter the query by primary key |
|
| @@ 243-255 (lines=13) @@ | ||
| 240 | * |
|
| 241 | * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter |
|
| 242 | */ |
|
| 243 | public function findPks($keys, ConnectionInterface $con = null) |
|
| 244 | { |
|
| 245 | if (null === $con) { |
|
| 246 | $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); |
|
| 247 | } |
|
| 248 | $this->basePreSelect($con); |
|
| 249 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 250 | $dataFetcher = $criteria |
|
| 251 | ->filterByPrimaryKeys($keys) |
|
| 252 | ->doSelect($con); |
|
| 253 | ||
| 254 | return $criteria->getFormatter()->init($criteria)->format($dataFetcher); |
|
| 255 | } |
|
| 256 | ||
| 257 | /** |
|
| 258 | * Filter the query by primary key |
|