protected function resetOthersConfirmation()
    {
        if (!$this->confirmationAttribute || empty($this->hostClass)) {
            return;
        }
        $contents = static::find()
            ->where([$this->contentAttribute => $this->getContent()])
            ->andWhere(['not like', $this->createdByAttribute, $this->user->getGUID()])
            ->all();
        foreach ($contents as $content) {
            $content->confirmation = static::$confirmFalse;
            $content->save();
        }
    }
protected function resetOthersConfirmation()
    {
        if (!$this->confirmationAttribute || empty($this->hostClass)) {
            return;
        }
        $contents = static::find()
            ->where([$this->contentAttribute => $this->getContent()])
            ->andWhere(['not like', $this->createdByAttribute, $this->user->getGUID()])
            ->all();
        foreach ($contents as $content) {
            $content->confirmation = static::$confirmFalse;
            $content->save();
        }
    }
protected function resetOthersConfirmation ( ) { if ( ! $ this -> confirmationAttribute || empty ( $ this -> hostClass ) ) { return ; } $ contents = static :: find ( ) -> where ( [ $ this -> contentAttribute => $ this -> getContent ( ) ] ) -> andWhere ( [ 'not like' , $ this -> createdByAttribute , $ this -> user -> getGUID ( ) ] ) -> all ( ) ; foreach ( $ contents as $ content ) { $ content -> confirmation = static :: $ confirmFalse ; $ content -> save ( ) ; } }
Reset others' confirmation when the others own the same content.
Reset others confirmation when the others own the same content .