public function excludeEntities($entities)
    {
        assert('is_array($entities) || is_null($entities)');

        if ($entities === null) {
            return;
        }
        $this->excluded = $entities;
        sort($this->excluded);
        $this->cacheId = sha1($this->cacheId.serialize($this->excluded));
    }
public function excludeEntities($entities)
    {
        assert('is_array($entities) || is_null($entities)');

        if ($entities === null) {
            return;
        }
        $this->excluded = $entities;
        sort($this->excluded);
        $this->cacheId = sha1($this->cacheId.serialize($this->excluded));
    }
public function excludeEntities ( $ entities ) { assert ( 'is_array($entities) || is_null($entities)' ) ; if ( $ entities === null ) { return ; } $ this -> excluded = $ entities ; sort ( $ this -> excluded ) ; $ this -> cacheId = sha1 ( $ this -> cacheId . serialize ( $ this -> excluded ) ) ; }
Set this aggregator to exclude a set of entities from the resulting aggregate.

@param array|null $entities The entity IDs of the entities to exclude.
@return void
Set this aggregator to exclude a set of entities from the resulting aggregate .