コード例 #1
0
 /**
  * Inserts as first child of given destination node $parent
  *
  * @param      sfBreadNav $parent	Propel object for destination node
  * @param      PropelPDO $con Connection to use.
  * @return     sfBreadNav The current object (for fluent API support)
  * @throws     PropelException - if this object already exists
  */
 public function insertAsFirstChildOf(NodeObject $parent, PropelPDO $con = null)
 {
     if (!$this->isNew()) {
         throw new PropelException("sfBreadNav must be new.");
     }
     sfBreadNavPeer::insertAsFirstChildOf($this, $parent, $con);
     return $this;
 }