src/Model.php
private function setOrderByFieldIndices()
    {
        $keyParts = $this->explodeKey($this->key);

        foreach ($this->orderBys as $field => $order) {
            $needle = $this->fieldWrapper[0] . $field . $this->fieldWrapper[1];
            $this->orderByFieldIndices[array_search($needle, $keyParts)] = $order;
        }
    }
private function setOrderByFieldIndices()
    {
        $keyParts = $this->explodeKey($this->key);

        foreach ($this->orderBys as $field => $order) {
            $needle = $this->fieldWrapper[0] . $field . $this->fieldWrapper[1];
            $this->orderByFieldIndices[array_search($needle, $keyParts)] = $order;
        }
    }
private function setOrderByFieldIndices ( ) { $ keyParts = $ this -> explodeKey ( $ this -> key ) ; foreach ( $ this -> orderBys as $ field => $ order ) { $ needle = $ this -> fieldWrapper [ 0 ] . $ field . $ this -> fieldWrapper [ 1 ] ; $ this -> orderByFieldIndices [ array_search ( $ needle , $ keyParts ) ] = $ order ; } }
Set order by field and order
Set order by field and order