Experimental fix for table name and alias resolution
authorAlexander Ebert <ebert@woltlab.com>
Fri, 16 Feb 2018 23:42:29 +0000 (00:42 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 16 Feb 2018 23:42:29 +0000 (00:42 +0100)
commit3661a81d00ecde8205d0834252a6e45a3ce9fe8a
tree8b418ef9d15e156d822f13a2998ba5fa0d852ea9
parent18dbbc114afbae920cd5a8321838668b2fa2007d
Experimental fix for table name and alias resolution

Relying on a local static variable is dangerous, because it is bound to
the implementing class, but once set, it becomes fixed for all derived
classes too.

This is similar to the `wcf\system\SingletonFactory` work-around that
uses a lookup table rather than LSB fields for the same reasons.
wcfsetup/install/files/lib/data/DatabaseObject.class.php