/** * Get a list of relations that should be eagerly loaded. * * @return array */ public function eagerLoads($simplified) { if ($simplified) { return $this->entity->eagerLoads(); } $relations = array_reduce($this->items, function ($relations, Column $item) { return array_merge($relations, $item->eagerLoads()); }, $this->entity->eagerLoads()); return array_unique($relations); }
/** * {@inheritdoc} */ public function eagerLoads() { $relation = $this->getRelationId(); return array_merge((array) $relation, $this->reference->eagerLoads($relation)); }