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
As the title says the current implementation of the __call method throws the following:
new InvalidArgumentException('Method name must begin with "findBy" or "findOneBy"!');
This happens whenever a findBy or findOneBy is called and no node is found. Whilst this could be intended I do not think this is intuitive and is in fact quite misleading.
I have replaced this implementation the following lines as it seems to be more logical.
} else {
throw new InvalidArgumentException('Method name must begin with "findBy" or "findOneBy"!');
}
return null;
The text was updated successfully, but these errors were encountered:
As the title says the current implementation of the __call method throws the following:
new InvalidArgumentException('Method name must begin with "findBy" or "findOneBy"!');
This happens whenever a findBy or findOneBy is called and no node is found. Whilst this could be intended I do not think this is intuitive and is in fact quite misleading.
I have replaced this implementation the following lines as it seems to be more logical.
} else {
throw new InvalidArgumentException('Method name must begin with "findBy" or "findOneBy"!');
}
return null;
The text was updated successfully, but these errors were encountered: