/** * Inserts as last child of given destination node $parent * * @param sfAssetFolder $parent Propel object for destination node * @param PropelPDO $con Connection to use. * @return sfAssetFolder The current object (for fluent API support) * @throws PropelException - if this object already exists */ public function insertAsLastChildOf(NodeObject $parent, PropelPDO $con = null) { if (!$this->isNew()) { throw new PropelException("sfAssetFolder must be new."); } sfAssetFolderPeer::insertAsLastChildOf($this, $parent, $con); return $this; }