private function doUpdateAceIdentityMap(array &$aces)
    {
        foreach ($aces as $index => $ace) {
            if (isset($this->loadedAces[$ace->getId()])) {
                $aces[$index] = $this->loadedAces[$ace->getId()];
            } else {
                $this->loadedAces[$ace->getId()] = $ace;
            }
        }
    }
private function doUpdateAceIdentityMap(array &$aces)
    {
        foreach ($aces as $index => $ace) {
            if (isset($this->loadedAces[$ace->getId()])) {
                $aces[$index] = $this->loadedAces[$ace->getId()];
            } else {
                $this->loadedAces[$ace->getId()] = $ace;
            }
        }
    }
private function doUpdateAceIdentityMap ( array & $ aces ) { foreach ( $ aces as $ index => $ ace ) { if ( isset ( $ this -> loadedAces [ $ ace -> getId ( ) ] ) ) { $ aces [ $ index ] = $ this -> loadedAces [ $ ace -> getId ( ) ] ; } else { $ this -> loadedAces [ $ ace -> getId ( ) ] = $ ace ; } } }
Does either overwrite the passed ACE, or saves it in the global identity
map to ensure every ACE only gets instantiated once.

@param array &$aces
Does either overwrite the passed ACE or saves it in the global identity map to ensure every ACE only gets instantiated once .