src/Type.php
public function getAllIndexes()
    {
        $result = [new Index('id', ['id'], IndexInterface::PRIMARY)];

        if ($this->getPolymorph()) {
            $result[] = new Index('type');
        }

        if (!empty($this->getIndexes())) {
            $result = array_merge($result, $this->getIndexes());
        }

        foreach ($this->getAssociations() as $assosication) {
            if ($assosication instanceof InjectIndexesInsterface) {
                $association_indexes = $assosication->getIndexes();

                if (!empty($association_indexes)) {
                    $result = array_merge($result, $association_indexes);
                }
            }
        }

        return $result;
    }
public function getAllIndexes()
    {
        $result = [new Index('id', ['id'], IndexInterface::PRIMARY)];

        if ($this->getPolymorph()) {
            $result[] = new Index('type');
        }

        if (!empty($this->getIndexes())) {
            $result = array_merge($result, $this->getIndexes());
        }

        foreach ($this->getAssociations() as $assosication) {
            if ($assosication instanceof InjectIndexesInsterface) {
                $association_indexes = $assosication->getIndexes();

                if (!empty($association_indexes)) {
                    $result = array_merge($result, $association_indexes);
                }
            }
        }

        return $result;
    }
public function getAllIndexes ( ) { $ result = [ new Index ( 'id' , [ 'id' ] , IndexInterface :: PRIMARY ) ] ; if ( $ this -> getPolymorph ( ) ) { $ result [ ] = new Index ( 'type' ) ; } if ( ! empty ( $ this -> getIndexes ( ) ) ) { $ result = array_merge ( $ result , $ this -> getIndexes ( ) ) ; } foreach ( $ this -> getAssociations ( ) as $ assosication ) { if ( $ assosication instanceof InjectIndexesInsterface ) { $ association_indexes = $ assosication -> getIndexes ( ) ; if ( ! empty ( $ association_indexes ) ) { $ result = array_merge ( $ result , $ association_indexes ) ; } } } return $ result ; }
Return all indexes.

@return IndexInterface[]
Return all indexes .