diff --git a/src/bind.inc.php b/src/bind.inc.php index 51af1c1..c5266a8 100644 --- a/src/bind.inc.php +++ b/src/bind.inc.php @@ -17,6 +17,7 @@ function supported_tokens() 'bhl_native_class_params', 'bhl_native_prefix', 'bhl_custom_rw', + 'bhl_no_array_proxy', 'bhl_get', 'bhl_set', 'bhl_ref_arg', @@ -89,7 +90,7 @@ function prepare_meta(\mtgMetaInfo $orig) //NOTE: let's replace arrays with array proxies foreach($fields as $name => $fld) { - if($fld->getType() instanceof \mtgArrType) + if($fld->getType() instanceof \mtgArrType && !$fld->hasToken('bhl_no_array_proxy')) { $proxy_name = "List_{$fld->getType()->getValue()->getName()}"; if(!isset($arr_proxies[$proxy_name]))