*/ class TicketLastnameFilter extends AssociationFilter { public function buildProperty(FormBuilderInterface $builder, FieldDto $fieldDto, $options = array()) { $builder->add( $fieldDto->getProperty(), TextType::class, array( 'required' => false, 'attr' => array( 'class' => ' input-sm', 'form' => 'filters-form', ), ) ); } public function applyFilter(RepositoryQueryInterface $repositoryQuery, FieldDto $fieldDto, $filteredValue = null) { if ($filteredValue !== null) { $repositoryQuery->filterByLastname($filteredValue); } } }