On 8/3/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
> >
> > I couldn't find in the documentation that this was possible. Is it also
> > now possible to do
> >
> > my $obj = $schema->resultset('Event')->create({venue=>$existing_venue});
>
> Yep, although in that case I'd likely use $venue->events->create instead

Is that a replacement for $venue->create_related( 'events' ... )?

-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/

_______________________________________________
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