public function getTables()
    {
        // Get main table
        $tables = [$this->queryBuilder->from];

        // Add possible join tables
        $joins = $this->queryBuilder->joins ? : [];
        foreach ($joins as $join) {

            if (!in_array($join->table, $tables) && is_string($join->table)) {
                $tables[] = $join->table;
            }
        }

        return $tables;
    }