public function getPreloadValues($property)
{
if (isset($this->preloadCache[$property])) {
return $this->preloadCache[$property];
}
$values = [];
if ($this->hasSubarray) {
foreach ($this->data as $block) {
foreach ($block as $entity) {
$values[] = $entity->getRawValue($property);
}
}
} else {
foreach ($this->data as $entity) {
$values[] = $entity->getRawValue($property);
}
}
return $this->preloadCache[$property] = $values;
}