[Dbix-class] DBIx::Class 0.08100 released to CPAN

David Ihnen davidi at norchemlab.com
Wed Apr 22 17:02:34 GMT 2009


Matt S Trout wrote:
> On Tue, Apr 21, 2009 at 10:59:48AM -0700, David Ihnen wrote:
>   =

>>     =

> Which is why:
>
>   =

>> ->create_related('ivr_holiday', { holiday =3D> date, description =3D> =

>> $description });
>>
>> is called. but does not create an error on groups when
>>
>> ->create_related('ivr_holiday', { holiday =3D> date, description =3D> =

>> $description, donor =3D> undef });
>>     =

>
> That change is correct - as I say, DBIC can't tell what's going to be in
> the database so it errs on the side of paranoia.
>
> Better to die() than to silently return the wrong thing.
>
>   =

Yes, but it does not explain why the groups relationship doesn't throw =

the same error that the donor relationship did throw, when it is =

configured identically with the same sort of relationships.

Surely its a bug if only the first relationship is checked and not all =

of them?

David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090422/56b=
95d65/attachment.htm


More information about the DBIx-Class mailing list