Cupara
Well-known member
On an admin page, I have 2 fields that I need the filter to search through and return any results.
I have this:
	
	
	
		
It works perfect but if I do the following:
	
	
	
		
The above returns an error of using an array instead of string.
Or:
	
	
	
		
The above returns 0 matches which I know there are matches.
				
			I have this:
		PHP:
	
	$finder->where('home_team', 'LIKE', $finder->escapeLike($filter['text'], $filter['prefix'] ? '?%' : '%?%'));It works perfect but if I do the following:
		PHP:
	
	$finder->where(['home_team', 'away_team'], 'LIKE', $finder->escapeLike($filter['text'], $filter['prefix'] ? '?%' : '%?%'));Or:
		PHP:
	
	$finder->where('home_team', 'LIKE', $finder->escapeLike($filter['text'], $filter['prefix'] ? '?%' : '%?%'))->where('away_team', 'LIKE', $finder->escapeLike($filter['text'], $filter['prefix'] ? '?%' : '%?%')); 
 
		 
 
		 
						
					 
 
		 
 
		 
 
		 
 
		 
 
		