public function resolveParams(Query $query) {
        $params = [];
        $schema = $query->getRepository()->getSchema()->getColumns();

        foreach ($query->getGroupedBindings() as $groupedBinds) {
            foreach ($groupedBinds as $binds) {
                $params[] = $this->resolveBind($binds['field'], $binds['value'], $schema);
            }
        }

        foreach ($query->getCompounds() as $compound) {
            $params = array_merge($params, $this->resolveParams($compound));
        }

        return $params;
    }