If an Entity use STI, it gets its table name from the parent class. In this case, we need to check that the class is the root class of the hierarchy when adding prefix, otherwise children class are prefixed twice.
git-subtree-dir: docs git-subtree-mainline: 271bd37ad35027c1d7ab5fe061c5fb2cadb39cc2 git-subtree-split: 8fcf2d45019bf38a1df728353a1e417343c69cfb