protected function _afterEntityInsert(AnCommandContext $context)
    {
        if ($this->isOwnable() && $this->owner->isNotifiable() && !$this->owner->eql($this->author)) {
            $this->addSubscriber($this->owner);
        } elseif (!empty($this->author)) {
            $this->addSubscriber($this->author);
        }
    }
protected function _afterEntityInsert(AnCommandContext $context)
    {
        if ($this->isOwnable() && $this->owner->isNotifiable() && !$this->owner->eql($this->author)) {
            $this->addSubscriber($this->owner);
        } elseif (!empty($this->author)) {
            $this->addSubscriber($this->author);
        }
    }
protected function _afterEntityInsert ( AnCommandContext $ context ) { if ( $ this -> isOwnable ( ) && $ this -> owner -> isNotifiable ( ) && ! $ this -> owner -> eql ( $ this -> author ) ) { $ this -> addSubscriber ( $ this -> owner ) ; } elseif ( ! empty ( $ this -> author ) ) { $ this -> addSubscriber ( $ this -> author ) ; } }
Subscribe the author to the node.

@param AnCommandContext $context Context parameter
Subscribe the author to the node .