src/Squid/MySql/Impl/Connectors/Object/Join/Selector/JoinedObjectSelect.php
public function queryGroupBy($byColumn, bool $removeColumn = false): Map
	{
		$map = $this->child->queryGroupBy($byColumn, $removeColumn);
		
		if ($map->hasElements())
		{
			$allGroups = $map->toArray();
			$allObjects = array_merge(...$allGroups);
			
			$this->config->loaded($allObjects);
		}
		
		return $map;
	}
public function queryGroupBy($byColumn, bool $removeColumn = false): Map
	{
		$map = $this->child->queryGroupBy($byColumn, $removeColumn);
		
		if ($map->hasElements())
		{
			$allGroups = $map->toArray();
			$allObjects = array_merge(...$allGroups);
			
			$this->config->loaded($allObjects);
		}
		
		return $map;
	}
Return array where each value is an array of rows grouped by a single column.
@param string|int $byColumn Column to group by.
@param bool $removeColumn If set to true, the group by column is removed from the row.
@return Map