Subject: | documentation error, re add_columns/is_nullable |
The documentation in lib/DBIx/Class/ResultSource.pm for add_columns -> is_nullable says "This is currently only used to create tables from your schema, see L<DBIx::Class::Schema/deploy>." And yet, after I added this flag to some columns so I could introspect them for my own purposes, I got errors:
"DBIx::Class::Relationship::HasOne::_validate_has_one_condition(): "might_have/has_one" must not be on columns with is_nullable set to true (modulename/columnname). This might indicate an incorrect use of those relationship helpers instead of belongs_to."
And then I would have to disagree that a might_have relationship should not be permitted for nullable columns -- after all, it's a "might have" because if this column is null, then there is no related row! What technical purpose does this restriction serve?