Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed $model->countRelated() failing when the relation is reusable #14444
In raising this pull request, I confirm the following:
Small description of change:
I added the
null. Therefore it should return false, instead of null when the requested method doesn't exist.
_getRelatedRecords returns null. Therefore it should return false, instead of null when the requested relation doesn't exist.
@@ Coverage Diff @@ ## 4.0.x #14444 +/- ## ========================================== + Coverage 67.67% 67.68% +0.01% ========================================== Files 482 482 Lines 111229 111235 +6 ========================================== + Hits 75275 75294 +19 + Misses 35954 35941 -13