Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for a string on an "index" page throws an AssertionError when entity does not have any string property #6223

Closed
roland-w-2024 opened this issue Mar 22, 2024 · 0 comments · Fixed by #6242

Comments

@roland-w-2024
Copy link

roland-w-2024 commented Mar 22, 2024

Describe the bug

Searching for a string on the "index" page of a CRUD controller throws an assert($this->lexer->lookahead !== null) AssertionError when the CRUD controller's entity class does not have any property of type string (with ORM configuration).

Note: Even if no string property is configured to be shown on the "index" page, its existence prevents the error to be thrown.

To Reproduce

  1. Create a Product entity class that has an id (integer) and an price (integer) property.
  2. Create a CRUD controller for the Product entity
  3. Searching for "foo" on the new CRUD controller index page will throw an AssertionError
  4. Create a Product::$title (string) property (with ORM configuration)
  5. Searching for "foo" on the new CRUD controller page will not throw an AssertionError

(OPTIONAL) Additional context

assertion-error

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

Successfully merging a pull request may close this issue.

2 participants