This method is currently locating an Entity by string, inflection and direct instantiation of the table instance. This seems fraught with problems. Instead, the method should take a table alias string, use the TableLocator class, and then pass that into the ModelDecorator.
This method is currently locating an Entity by string, inflection and direct instantiation of the table instance. This seems fraught with problems. Instead, the method should take a table alias string, use the TableLocator class, and then pass that into the ModelDecorator.