[Dbix-class] possible bug in DBIx::Class::Row
Oleg Pronin
syber.rus at gmail.com
Wed May 13 10:18:15 GMT 2009
in DBIx::Class::Row::insert
if(!$self->{_rel_in_storage}) {
#heavy code
}
#insert code
Example:
$obj1 =3D $rs->new({...});
$obj2 =3D $obj1->new_related('abc', {..});
$obj1->insert; #ok
#this cause 'heavy code' to execute because $self->{_rel_in_storage}
is undefined although $obj1 has been inserted in previous line
$obj2->insert;
I think _rel_in_storage should be updated when related object is
inserted or should be evaluated at insert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090513/047=
d6e1c/attachment.htm
More information about the DBIx-Class
mailing list