Searchable for models/relationships with different database connections
I have a model with a connection to another database, when it appears in the list table it doesn't have a problem, but when the fields of the model are given searchable parameters an error occurs, it seems the error is because the search query is not connected to another database. is there a solution for this?
6 Replies
fyi, m_partner comes from a different database
I don’t think that can work. Relations can be loaded afterwards from a different db. But for search it needs to look into multiple columns at once.
Is there any way that might be used to override the table search query?
Sure. You can overwrite the whole query on the list page by overwriting the methods
what 'method ? applySearchToTableQuery ?
That’s probably the best one.