Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Ltrim issue in LexikFormFilterBundle/Event/Subscriber/DoctrineORMSubscriber.php #359

@alexandrupietrareanu

Description

@alexandrupietrareanu

Line 81: $fieldName = ltrim($event->getField(), $rootPart->getAlias() . '.'); is not behaving as expected.
Instead of replacing the string containing the alias and ".", it also replaces the first character after the point if is found in the second parameter.

From the php documentation:
https://www.php.net/manual/en/function.ltrim.php

characters
You can also specify the characters you want to strip, by means of the characters parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions