Ejemplo n.º 1
0
 /**
  * Declares an association between this object and a Poblacions object.
  *
  * @param      Poblacions $v
  * @return     EspaisExterns The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setPoblacions(Poblacions $v = null)
 {
     if ($v === null) {
         $this->setPoble(NULL);
     } else {
         $this->setPoble($v->getIdpoblacio());
     }
     $this->aPoblacions = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Poblacions object, it will not be re-added.
     if ($v !== null) {
         $v->addEspaisExterns($this);
     }
     return $this;
 }