Skip to content

2.20.7 / 3.5.3 seems to break EntityRepository::findBy... Empty Array Queries #12245

@alexander-schranz

Description

@alexander-schranz

Bug Report

Q A
Version 2.20.7
Previous Version if the bug is a regression 2.20.6

Summary

The latest release seems to have a regression in it which breaks some of our code.

I debugged through the changes and it seems be related to: #11895

Current behavior

  Exception: An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR:  syntax error at or near ")"
  LINE 1: ...anger AS iduserschanger_8 FROM me_media t0 WHERE t0.id IN ()

Expected behavior

No error.

See also: #12190 (comment)

How to reproduce

git clone git@github.com:sulu/sulu.git
cd sulu
git checkout 3.0

docker compose up --wait

bin/runtests -i -t ContactBundle -C --flags="--filter=ContactControllerTest::testPostAccountIDNull"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions