[Dbix-class] DBIx::Class 0.08100 released to CPAN
Matt S Trout
dbix-class at trout.me.uk
Wed Apr 22 14:06:39 GMT 2009
On Tue, Apr 21, 2009 at 10:59:48AM -0700, David Ihnen wrote:
> Peter Rabbitson wrote:
> >David Ihnen wrote:
> >
> >>So 'does not exist' is not equivalent to 'undef' per the logic in the
> >>code? Does something break if they are equivalent?
> >>
> >
> >http://search.cpan.org/~mstrout/DBIx-Class-0.08100/lib/DBIx/Class/Row.pm#new
> >
> >'does not exist' = I don't know
> >'undef' = There isn't one
> >
>
> Understood. We'll be more explicit.
Which is why:
> ->create_related('ivr_holiday', { holiday => date, description =>
> $description });
>
> is called. but does not create an error on groups when
>
> ->create_related('ivr_holiday', { holiday => date, description =>
> $description, donor => 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.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list