Browse Source

Allow the fields to be passed as an array as well as arguments

master
Tom Lingham 9 years ago
parent
commit
fd959de449
  1. 4
      src/SearchBuilder.php

4
src/SearchBuilder.php

@ -56,7 +56,9 @@ class SearchBuilder
*/
public function fields(/* $fields */)
{
$this->searchFields = func_get_args();
$args = func_get_args();
$this->searchFields = is_array( $args[0] ) ? $args[0] : $args;
return $this->makeDriver();
}

Loading…
Cancel
Save