/** * 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 Causadiferido $child Propel object for child node * * @return Causadiferido The current Propel object */ public function addChild(Causadiferido $child) { if ($this->isNew()) { throw new PropelException('A Causadiferido object must not be new to accept children.'); } $child->insertAsFirstChildOf($this); return $this; }