RSS Feed/News XF\Mvc\Entity\Manager::getFinder can frequently throw exceptions

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,756
Points
823

Reputation:

getFinder() support Entity/Finder class references, but it does this by calling \XF::classToString() twice.

The problem is the 1st call throws an InvalidArgumentException exception, this is an issue for two reasons;
  • When a debugger is attached via xdebug (aka phpstorm) this pauses execution, InvalidArgumentException is used elsewhere so just ignoring this exception type isn't great.
    • Depend on the page, this can cause a lot of exceptions which makes...

Read more

Continue reading...
 
Status
Not open for further replies.
Top