protected function buildDictionary($results)
    {
        foreach ($results as $result) {
            if ($result[$this->morphType]) {
                $this->dictionary[$result[$this->morphType]][$result[$this->foreignKey]][] = $result;
            }
        }
    }
protected function buildDictionary($results)
    {
        foreach ($results as $result) {
            if ($result[$this->morphType]) {
                $this->dictionary[$result[$this->morphType]][$result[$this->foreignKey]][] = $result;
            }
        }
    }
protected function buildDictionary ( $ results ) { foreach ( $ results as $ result ) { if ( $ result [ $ this -> morphType ] ) { $ this -> dictionary [ $ result [ $ this -> morphType ] ] [ $ result [ $ this -> foreignKey ] ] [ ] = $ result ; } } }
Build a dictionary with the entities.

@param array $results

@return void
Build a dictionary with the entities .