AlexAnder
Select or Create in attach modal freezes (no scroll)
When in RealitionManager choose attach and in select there is no wanted record, choose create witch opens new modal for create. Then It's creates, closes create modal, selects active record in select and you can attach. After modal closes, screen lost it's scroll. All actions works, but scroll returns after refresh the page.
2 replies
Forms\Components\Select with relationship loads all records from DB
My code
Post.php - Model
From DB selects all users. Its all table records.. (not enogth RAM) Also from people table is the same..
DB
And PHP crashed because off memory exhausted..
2 replies
Custom AttachAction
Can someone can help?
I have peoples connected thru polymorphic relation MorphToMany.
When I attach person to person, in db I get
The questions is:
Ho to customize AttachAction to get records in db in both directions, so on both persons I get relation with each other?
7 replies
Rewrite Global search
Maybe someone will need a solution for rewrite global search.
It's searches by different column (in my case PostgreSql full text search column - tsvector data type)
I did it like this.
Enable global search
Rewrite global search results (getGlobalSearchResults)
Maybe someone can give better solution..
1 replies
Disable search in "globalSearch"
Hi.
I am confuse.
DB is PostgreSQL.
I have in Resource
As I understood, it's for global search and when I search, it's searches like:
But I have another column for full text search with index and I one to search by query:
When I rewrite "getGlobalSearchResults":
It's searches in both variants and returns result based on first (simple "ilike" search)
If I remove $recordTitleAttribute, the its shows up menu without title (I see, that getGlobalSearchResults runs - searches)
So, how to enable only my getGlobalSearchResults query and return event_name as the title in search result.
5 replies