Skip to content

fix(BaseGrid): improve entity retrieval and error handling#11

Merged
thorewi merged 3 commits into
mainfrom
fix-null-entity
May 4, 2026
Merged

fix(BaseGrid): improve entity retrieval and error handling#11
thorewi merged 3 commits into
mainfrom
fix-null-entity

Conversation

@AdtMax

@AdtMax AdtMax commented May 4, 2026

Copy link
Copy Markdown
Contributor
  • Replace getSingleResult() with getOneOrNullResult() to handle missing entities
  • Add null check to trigger presenter error when entity not found
  • Maintain backward compatibility with array and object result handling

- Replace getSingleResult() with getOneOrNullResult() to handle missing entities
- Add null check to trigger presenter error when entity not found
- Maintain backward compatibility with array and object result handling
@AdtMax
AdtMax requested a review from thorewi May 4, 2026 14:23
@AdtMax AdtMax self-assigned this May 4, 2026
AdtMax added 2 commits May 4, 2026 17:15
Add initQueryObject call before executing byId query to ensure proper
query object setup. This prevents potential issues with entity retrieval
when the query object requires initialization before use.
@thorewi
thorewi merged commit 127ce13 into main May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants