| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Added the ability to set a $tableAs for joins if the left table is the same as the right table. Will default to the right table name if not set.
Fixed issue where the right table in $onCondition needed to match $tableAs if it was set.
Updated the examples for the different joins to reflect the new `$tableAs` variable in the functions
Missed a new line on the last commit. Also missed a param in the joining query description and some psr-2 changes. Also found an issue with $condition being used in $onCondition not being consistent.
Changed $condition back to `=` in first and last $onCondition as wasn't meant to be changed.
Update ezSQL for new fixes
To include `leftJoin()` phpunit testing and also fix a couple of phpunit depreciation warnings.
|
@techno-express ok, I finally got around to writing a phpunit test. Let me know if you're happy with this. It passes when I run it. 😄 |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #180 +/- ##
============================================
+ Coverage 83.56% 84.91% +1.34%
- Complexity 788 793 +5
============================================
Files 14 14
Lines 2002 2002
============================================
+ Hits 1673 1700 +27
+ Misses 329 302 -27
Continue to review full report at Codecov.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #174
Removed check for $columnFields being empty, and added dots between table and column names in the query builder.
Also, fixed a couple of phpunit depreciation warnings.