[Dbix-class] might_have and is_nullable

matthew couchman (JIC) matthew.couchman at bbsrc.ac.uk
Wed Nov 17 12:27:40 GMT 2010


Hi,

I'm getting the warning:

"might_have/has_one" must not be on columns with is_nullable set to true. This might indicate an incorrect use of those relationship helpers instead of belongs_to.

and the documentation also tells me that this is naughty. But surely by saying that something might have something it implies that it also might not have that something so it needs to be a nullable value. Do I just need to specify it in a different way?

Thanks,

                                Matt.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20101117/e8f7c435/attachment.htm


More information about the DBIx-Class mailing list