|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Re: Re: Re: Class::DBI find_or_create method inserts record but $obj->id is undefby jerrygarciuh (Curate) |
| on Jan 24, 2004 at 00:37 UTC ( #323751=note: print w/ replies, xml ) | Need Help?? |
|
Mea culpa. Thanks for the reminder I have been away from Perl for a good while. Unfortunately the Class::DBI update() method does not work unless the $obj has an id defined and part of the problem here is that the insert id isn't in $obj unless find_or_create gets an explicit undef or an explicit $id.
_____________________________________________________ "The man who grasps principles can successfully select his own methods. The man who tries methods, ignoring principles, is sure to have trouble. ~ Ralph Waldo Emerson
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||