original_string: protected function overwriteExistingRelation($name)
      {
          if ($this->relations->isEmpty()) {
              return;
          }
  
          $this->relations = $this->relations->filter(
              function (Relation $relation) use ($name) {
                  return $relation->getName() != $name;
              }
          );
      }
code: protected function overwriteExistingRelation($name)
      {
          if ($this->relations->isEmpty()) {
              return;
          }
  
          $this->relations = $this->relations->filter(
              function (Relation $relation) use ($name) {
                  return $relation->getName() != $name;
              }
          );
      }
code_tokens: protected function overwriteExistingRelation ( $ name ) { if ( $ this -> relations -> isEmpty ( ) ) { return ; } $ this -> relations = $ this -> relations -> filter ( function ( Relation $ relation ) use ( $ name ) { return $ relation -> getName ( ) != $ name ; } ) ; }
docstring: Overwrite existing relation.
  
  @param string $name
docstring_tokens: Overwrite existing relation .