private function tokenToColumn($token, $namingConvention, $class)
    {
        // Find a matching property
        $property = null;
        foreach ($class->getProperties() as $prop) {
            if (strcasecmp($token->getSource(), $prop->getName()) === 0) {
                $property = $prop;
                break;
            }
        }

        if ($property === null) {
            throw new DslSyntaxException('No matching property found for ' . $token->getSource());
        }

        return $namingConvention->propertyToColumnName($property);
    }