LexikFormFilterBundle
LexikFormFilterBundle copied to clipboard
Ltrim issue in LexikFormFilterBundle/Event/Subscriber/DoctrineORMSubscriber.php
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.