protected function groupByPending()
    {
        $column = $this->pending['groupBy'];

        $grouped = array();
        foreach ($this->data as $object)
        {
            $grouped[$object->{$column}][] = $object;
        }

        $this->data = $grouped;
    }
protected function groupByPending()
    {
        $column = $this->pending['groupBy'];

        $grouped = array();
        foreach ($this->data as $object)
        {
            $grouped[$object->{$column}][] = $object;
        }

        $this->data = $grouped;
    }
protected function groupByPending ( ) { $ column = $ this -> pending [ 'groupBy' ] ; $ grouped = array ( ) ; foreach ( $ this -> data as $ object ) { $ grouped [ $ object -> { $ column } ] [ ] = $ object ; } $ this -> data = $ grouped ; }
Grouping array pending method
Grouping array pending method