damiencorpataux/xfm-php

xModel::count() wrong with 'xgroup_by' parameter

Opened this issue · 0 comments

xModel::load('some', array('group_by' => 'field'))->count() returns wrong count.

Returned value is

  • 1 when at least 1 records are selected (should equal the number of record)
  • null when 0 record is selected (should equal 0)