Made method public and fixed return
This commit is contained in:
parent
8f57077ef6
commit
058e22c1aa
1 changed files with 2 additions and 5 deletions
|
@ -1719,11 +1719,10 @@ class Model extends Object
|
|||
* Pulls the value from a single field and returns an array without any
|
||||
* duplicates. Perfect for extracting foreign keys to use in later queries.
|
||||
*
|
||||
* @access protected
|
||||
* @param string $field field we want the values for
|
||||
* @return array values for the passed field
|
||||
*/
|
||||
protected function fieldValues($field)
|
||||
public function fieldValues($field)
|
||||
{
|
||||
$values = array();
|
||||
|
||||
|
@ -1732,9 +1731,7 @@ class Model extends Object
|
|||
$values[] = $record[$field];
|
||||
}
|
||||
|
||||
array_unique($values);
|
||||
|
||||
return $values;
|
||||
return array_unique($values);
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue