[Dbix-class] Updating foreign key does not reload related object
Zbigniew Lukasiak
zzbbyy at gmail.com
Tue Aug 7 11:12:45 GMT 2007
On 8/3/07, Matt S Trout <dbix-class at trout.me.uk> 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/
More information about the DBIx-Class
mailing list