Throw exceptions in JsMin, implementing automatic joins for many-to-many relations in PHQL