src/Zicht/Bundle/UrlBundle/Aliasing/Doctrine/CreateAliasSubscriber.php
protected function addRecord($entity, array $action = [])
    {
        if ($entity instanceof $this->className) {
            if (false !== ($index = array_search($entity, array_column($this->records, 0), true))) {
                if (!in_array($this->records[$index], $action)) {
                    $this->records[$index][] = $action;
                }
            } else {
                $this->records[] = [$entity, $action];
            }
        }
    }
protected function addRecord($entity, array $action = [])
    {
        if ($entity instanceof $this->className) {
            if (false !== ($index = array_search($entity, array_column($this->records, 0), true))) {
                if (!in_array($this->records[$index], $action)) {
                    $this->records[$index][] = $action;
                }
            } else {
                $this->records[] = [$entity, $action];
            }
        }
    }
protected function addRecord ( $ entity , array $ action = [ ] ) { if ( $ entity instanceof $ this -> className ) { if ( false !== ( $ index = array_search ( $ entity , array_column ( $ this -> records , 0 ) , true ) ) ) { if ( ! in_array ( $ this -> records [ $ index ] , $ action ) ) { $ this -> records [ $ index ] [ ] = $ action ; } } else { $ this -> records [ ] = [ $ entity , $ action ] ; } } }
Add a entity to record list for postFlush processing.

@param object $entity
@param array $action
Add a entity to record list for postFlush processing .