in reply to Re^3: Class::DBI and a self-referencing many-to-many
in thread Class::DBI and a self-referencing many-to-many

my $parent1 = Person->create({ name => 'P1' }); my $parent2 = Person->create({ name => 'P2' }); I guess I was hoping to say something like this:
my $parent = Person->create({ name => 'P' }); my $child = Person->create({ name => 'C1', parent => $parent });
But I can live without it. :-)

Replies are listed 'Best First'.
Re^5: Class::DBI and a self-referencing many-to-many
by perrin (Chancellor) on Sep 14, 2005 at 21:28 UTC
    Just make your own method that takes these arguments and calls create on both tables.