original_string: public function setRelation($name, $related_object)
      {
          //if no related object is supplied, set it to false (an array
          //value of null will not pass an isset() check on the
          //relation_objects array).
          if (!$related_object) {
              $related_object = false;
          }
  
          $this->relation_objects[$name] = $related_object;
      }
code: public function setRelation($name, $related_object)
      {
          //if no related object is supplied, set it to false (an array
          //value of null will not pass an isset() check on the
          //relation_objects array).
          if (!$related_object) {
              $related_object = false;
          }
  
          $this->relation_objects[$name] = $related_object;
      }
code_tokens: public function setRelation ( $ name , $ related_object ) { //if no related object is supplied, set it to false (an array //value of null will not pass an isset() check on the //relation_objects array). if ( ! $ related_object ) { $ related_object = false ; } $ this -> relation_objects [ $ name ] = $ related_object ; }
docstring: Set the named related object.
  
  @param string $name           The name of the relation
  @param mixed  $related_object The related object
docstring_tokens: Set the named related object .