| @@ 95-101 (lines=7) @@ | ||
| 92 | * @param RecordCollection $collection |
|
| 93 | * @return array |
|
| 94 | */ |
|
| 95 | public function getEagerFkList(RecordCollection $collection) |
|
| 96 | {
|
|
| 97 | $key = $collection->getManager()->getPrimaryKey(); |
|
| 98 | $return = HelperBroker::get('Arrays')->pluck($collection, $key);
|
|
| 99 | ||
| 100 | return array_unique($return); |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * @param array $dictionary |
|
| @@ 439-446 (lines=8) @@ | ||
| 436 | * @param RecordCollection $collection |
|
| 437 | * @return array |
|
| 438 | */ |
|
| 439 | public function getEagerFkList(RecordCollection $collection) |
|
| 440 | { |
|
| 441 | /** @var ArraysHelper $arrayHelper */ |
|
| 442 | $arrayHelper = HelperBroker::get('Arrays'); |
|
| 443 | $return = $arrayHelper->pluck($collection, $this->getFK()); |
|
| 444 | ||
| 445 | return array_unique($return); |
|
| 446 | } |
|
| 447 | ||
| 448 | /** |
|
| 449 | * @return string |
|