protected function getAssocEntities(AssociationList $assoc) { if ($assoc->hasEntities()) { return $assoc->getEntities(); } else { return $this->entity->callGetter($assoc->getPropertyName()); } }