protected function indexEntities(array $aEntities)
    {
        $aIndexEntities = array();
        foreach ($aEntities as $oEntity) {
            $aIndexEntities[$oEntity->getCollectionIndex()] = $oEntity;
        }

        return $aIndexEntities;
    }
protected function indexEntities(array $aEntities)
    {
        $aIndexEntities = array();
        foreach ($aEntities as $oEntity) {
            $aIndexEntities[$oEntity->getCollectionIndex()] = $oEntity;
        }

        return $aIndexEntities;
    }
protected function indexEntities ( array $ aEntities ) { $ aIndexEntities = array ( ) ; foreach ( $ aEntities as $ oEntity ) { $ aIndexEntities [ $ oEntity -> getCollectionIndex ( ) ] = $ oEntity ; } return $ aIndexEntities ; }
Create index array

@param AssocEntityInterface[] $aEntities

@return array
Create index array