You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jira issue originally created by user jacksleight:
At the moment the proxy generator creates methods like this:
public function type()
{
$this->*_initializer__ && $this->__initializer__->_*invoke($this, 'type', array());
return parent::type();
}
However, this breaks methods in the entity class that rely on func*num_args or func_get*args (eg. a method that can have variable arguments), as only the defined arguments are passed through to the parent method.
I would like to suggest changing the proxy generator to output code like this:
public function type()
{
$this->*_initializer__ && $this->__initializer__->_*invoke($this, 'type', array());
$args = func*get*args();
return call*user_func*array('parent::type', $args);
}
So that all arguments are passed through.
I'd be happy to create a pull request for this, unless there's a reason why you wouldn't want to do it that way?
The text was updated successfully, but these errors were encountered:
Jira issue originally created by user jacksleight:
At the moment the proxy generator creates methods like this:
However, this breaks methods in the entity class that rely on
func*num_args
orfunc_get*args
(eg. a method that can have variable arguments), as only the defined arguments are passed through to the parent method.I would like to suggest changing the proxy generator to output code like this:
So that all arguments are passed through.
I'd be happy to create a pull request for this, unless there's a reason why you wouldn't want to do it that way?
The text was updated successfully, but these errors were encountered: