| @@ 194-206 (lines=13) @@ | ||
| 191 | * |
|
| 192 | * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter |
|
| 193 | */ |
|
| 194 | public function findPks($keys, ConnectionInterface $con = null) |
|
| 195 | { |
|
| 196 | if (null === $con) { |
|
| 197 | $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); |
|
| 198 | } |
|
| 199 | $this->basePreSelect($con); |
|
| 200 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 201 | $dataFetcher = $criteria |
|
| 202 | ->filterByPrimaryKeys($keys) |
|
| 203 | ->doSelect($con); |
|
| 204 | ||
| 205 | return $criteria->getFormatter()->init($criteria)->format($dataFetcher); |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * Filter the query by primary key |
|
| @@ 214-226 (lines=13) @@ | ||
| 211 | * |
|
| 212 | * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter |
|
| 213 | */ |
|
| 214 | public function findPks($keys, ConnectionInterface $con = null) |
|
| 215 | { |
|
| 216 | if (null === $con) { |
|
| 217 | $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); |
|
| 218 | } |
|
| 219 | $this->basePreSelect($con); |
|
| 220 | $criteria = $this->isKeepQuery() ? clone $this : $this; |
|
| 221 | $dataFetcher = $criteria |
|
| 222 | ->filterByPrimaryKeys($keys) |
|
| 223 | ->doSelect($con); |
|
| 224 | ||
| 225 | return $criteria->getFormatter()->init($criteria)->format($dataFetcher); |
|
| 226 | } |
|
| 227 | ||
| 228 | /** |
|
| 229 | * Filter the query by primary key |
|