Simplified Entity

This commit is contained in:
fbsanchez 2021-09-16 21:54:12 +02:00
parent b33be80be3
commit 187c6700b1
1 changed files with 1 additions and 9 deletions

View File

@ -178,15 +178,7 @@ abstract class Entity
&& $this->enterprise !== null
&& method_exists($this->enterprise, $methodName) === true
) {
$obj = $this->enterprise;
$callback = function (...$parameters) use ($obj, $methodName) {
return $obj->$methodName(...$parameters);
};
return call_user_func_array(
$callback,
$params
);
return $this->enterprise->$methodName(...$params);
}
if (method_exists($this, $methodName) === false) {