Fixed #105 - Join table name not generated properly by n-at-han-k · Pull Request #109 · j4mie/paris
There was an issue with the has_many_through method. When you
passed it a model to associate with that had a namespace.
e.g. $post->has_many_through('\Blog\Models\Tag');
The error was that it wasn't correctly creating the table
name for the join.
e.g. post_tag was instead post_blog_models_tag
Thus results weren't being fetched.
Basically it was performing an algorithm to extract the class name from the namespace on one of the classes but not the other. So Paris would end up requesting a table like "post_namespace_namespace_tag" instead of "post_tag".
Fixes #105