Hi All,

In Row::new there is logic for caching newed but not inserted objects
so that insert can pick them up later and insert them if required.

Are there any technical/theoretical reasons for not simulating or
moving the logic into Relationship::Base::new_related?

E.g. I think the following should work but it currently doesn't ...

my $obj1 = $schema->resultset('MyApp::Obj1')->new($some_args);
my $obj2 = $obj1->new_related('rel', $more_args);
$obj1->insert();
ok($obj2->in_storage());

Cheers,

Scott

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to