Karaka-Management / phpOMS

PHP Framework
Other
2 stars 0 forks source link

Calling a data mapper with ::count() and with() results in a select query that does COUNT(*) AND all the other tables of the with() table which is obviously not what we want! This results in a failed sql execute(). #353

Closed spl1nes closed 8 months ago

spl1nes commented 8 months ago

Solved with:

if (empty($columns) && $this->type < MapperType::COUNT_MODELS) {