Skip to content

Conversation

@mentisy
Copy link
Owner

@mentisy mentisy commented Mar 22, 2025

When there's a controller that uses the non-conventional name, one needs to use the defaultTable property to override what model is fetched in the controller. In this scenario, the display field cannot be fetched because it tries to get the model using the name of the controller. This model won't exist, so throws error.

Scenario:
A controller is named LocationsAliases and uses defaultTable value Locations. The app, before this fix, will try to get the entity of LocationsAliases, instead of Locations.

@mentisy mentisy added the bug Something isn't working label Mar 22, 2025
@mentisy mentisy self-assigned this Mar 22, 2025
@mentisy mentisy merged commit e4a011a into main Mar 22, 2025
4 checks passed
@mentisy mentisy deleted the 2.next branch March 22, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants