Upstream patch: Enhancement so filters can be supplied to run_filter()

This commit is contained in:
Deon George 2011-05-14 17:36:20 +10:00
parent 9dda9f43f4
commit 5c9750e957

View File

@ -1127,8 +1127,9 @@ class Kohana_ORM extends Model implements serializable {
* @param string $value The value to filter
* @return string
*/
protected function run_filter($field, $value)
protected function run_filter($field, $value, $filters=NULL)
{
if (is_null($filters))
$filters = $this->filters();
// Get the filters for this column