Hi, how to implement a search based on a polymorphic relation with a relationship one down even?
With the following code I get the error for sorting:
Call to a member function getRelated() on null
Call to a member function getRelated() on null
. On searching I get:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.'first_name' like ? or 'consultable'.'patientStatus'.'patient'.'last_name' like' at line 1
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.'first_name' like ? or 'consultable'.'patientStatus'.'patient'.'last_name' like' at line 1
Seems like a bug in Filament? The code used is shown below: