Re: NULLs in foreign keys ok?

[prev] [thread] [next] [Date index for 2005/02/14]

From: Perrin Harkins
Subject: Re: NULLs in foreign keys ok?
Date: 20:45 on 14 Feb 2005
On Mon, 2005-02-14 at 00:44 -0800, Ofer Nave wrote:
> Is it still safe to set up a has_a relationship?

Yes.

> What happens if I call 
> the employer() method that I set up in that case?  Does it return undef, 
> indicating that this person, in fact, doesn't "have a" employer?  :)

Try it.

- Perrin

NULLs in foreign keys ok?
Ofer Nave 08:44 on 14 Feb 2005

Re: NULLs in foreign keys ok?
Perrin Harkins 20:45 on 14 Feb 2005

Generated at 17:31 on 15 Feb 2005 by mariachi v0.52