/** * Declares an association between this object and a Libro object. * * @param Libro $v * @return Comentario The current object (for fluent API support) * @throws PropelException */ public function setLibro(Libro $v = null) { if ($v === null) { $this->setId_libro(NULL); } else { $this->setId_libro($v->getId()); } $this->aLibro = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Libro object, it will not be re-added. if ($v !== null) { $v->addComentario($this); } return $this; }