|Date:||Tue, 16 Sep 2003 12:23:08 +0200|
|Subject:||might_have bug + patch|
|From:||David Jack Olrik <firstname.lastname@example.org>|
Yello! I found a small problem with might_have, if data exists in the parent tabel and not in the child table the accessor methods for the child fields does not work. (it simply returns, because the child is undef) I have to tables, lets call them A & B. A->might_have('b' => 'B', qw[stuff]); Data exists in table A but not in table B. The following does not work... my $o = retrieve A(1); $o->stuff('lots'); <-- stuff nevet gets set Because the internal B is undef the accessor method just returns Here is a patch to 0.94 that fixes the problem =)
Message body is not shown because sender requested not to inline it.