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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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