original_string: public function setReference(ChildReference $v = null)
      {
          if ($v === null) {
              $this->setReferenceId(NULL);
          } else {
              $this->setReferenceId($v->getId());
          }
  
          $this->aReference = $v;
  
          // Add binding for other direction of this n:n relationship.
          // If this object has already been added to the ChildReference object, it will not be re-added.
          if ($v !== null) {
              $v->addVideo($this);
          }
  
  
          return $this;
      }
code: public function setReference(ChildReference $v = null)
      {
          if ($v === null) {
              $this->setReferenceId(NULL);
          } else {
              $this->setReferenceId($v->getId());
          }
  
          $this->aReference = $v;
  
          // Add binding for other direction of this n:n relationship.
          // If this object has already been added to the ChildReference object, it will not be re-added.
          if ($v !== null) {
              $v->addVideo($this);
          }
  
  
          return $this;
      }
code_tokens: public function setReference ( ChildReference $ v = null ) { if ( $ v === null ) { $ this -> setReferenceId ( NULL ) ; } else { $ this -> setReferenceId ( $ v -> getId ( ) ) ; } $ this -> aReference = $ v ; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildReference object, it will not be re-added. if ( $ v !== null ) { $ v -> addVideo ( $ this ) ; } return $ this ; }
docstring: Declares an association between this object and a ChildReference object.
  
  @param  ChildReference $v
  @return $this|\gossi\trixionary\model\Video The current object (for fluent API support)
  @throws PropelException
docstring_tokens: Declares an association between this object and a ChildReference object .