Exemplo n.º 1
0
 /**
  * Inserts the given $child node as first child of current
  * The modifications in the current object and the tree
  * are not persisted until the child object is saved.
  *
  * @param      Especialidad $child	Propel object for child node
  *
  * @return     Especialidad The current Propel object
  */
 public function addChild(Especialidad $child)
 {
     if ($this->isNew()) {
         throw new PropelException('A Especialidad object must not be new to accept children.');
     }
     $child->insertAsFirstChildOf($this);
     return $this;
 }