cakephp/cakephp — pull request #2173 by baberuth22 (2013-10-21 16:26:13+00:00)
Title: Improve Join Workflow - DboSource

DboSource.php - lines 1067 - 1082

![cake-join-diff](https://f.cloud.github.com/assets/2997424/1374175/5bc6b8de-3a6d-11e3-988e-6f1524639a83.png)

Currently all automatically generated joins from model relationships are added AFTER joins passed to the find function.

This means I have to respecify some existing joins and ALIAS the tables in order to pass custom joins to the find function.

Adding the custom joins from find options after model joins would solve the problem.

Fixes ticket by same name. https://github.com/cakephp/cakephp/issues/2162#issuecomment-26640356