<?xml version="1.0" encoding="windows-1252"?>
<node id="323763" title="Re: Re: Re: Re: Re: Class::DBI find_or_create method inserts record but $obj-&gt;id is undef" created="2004-01-23 21:00:59" updated="2004-08-22 16:59:33">
<type id="11">
note</type>
<author id="104919">
perrin</author>
<data>
<field name="doctext">
That's why I said you should delete the value AFTER the call to find_or_create.  Alternatively, you could replace your loop with this:
&lt;CODE&gt;
foreach my $field (grep { $_ ne 'id' } $q-&gt;param) {
&lt;/CODE&gt;</field>
<field name="root_node">
323738</field>
<field name="parent_node">
323751</field>
</data>
</node>
