- Added support for enums in ApiRepository bindUrl()
This commit is contained in:
1 parent
f3a21a811b
commit
99c0148a20
1 file changed
+4
@@ -158,6 +158,10 @@ class ApiRepository extends \Ulmus\Repository
|
||||
}
|
||||
}
|
||||
|
||||
if (is_object($value) && enum_exists($value::class)) {
|
||||
$value = $value->value;
|
||||
}
|
||||
|
||||
$search[$item[0]] = rawurlencode($value ?? "");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user