i have managed to do this with addFieldToFilter
default functionality like this:
$collection->addFieldToFilter(
array('first_name','last_name'),
array($post['firstName'],$post['lastName'])
);
this is working when i print sql (this is just part from the whole statement being printed):
((first_name = 'r') OR (last_name = 't'))
now i am trying to understand how to use 'like'
instead of =
.
need some help in understanding that.
your time and answers are highly appericiated thank you.