Entity method toArray for api; ILike operator for db queries