Beispiel #1
0
 /**
  * Declares an association between this object and a Genero object.
  *
  * @param      Genero $v
  * @return     Lista The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setGenero(Genero $v = null)
 {
     if ($v === null) {
         $this->setId_genero(NULL);
     } else {
         $this->setId_genero($v->getId());
     }
     $this->aGenero = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Genero object, it will not be re-added.
     if ($v !== null) {
         $v->addLista($this);
     }
     return $this;
 }