X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FHasMany.pm;h=fd84b304881521afc4bfc04b2d4e4edb18d4d9ff;hb=cc8ffd7bfc8a375545f35c8be3c224cf365ee7e7;hp=664f4fde7ad2717998be18914be4bca5f39a2eda;hpb=9e7525a2cc9d7459ee89a6d2c85913a8b8c4eff9;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Relationship/HasMany.pm b/lib/DBIx/Class/Relationship/HasMany.pm index 664f4fd..fd84b30 100644 --- a/lib/DBIx/Class/Relationship/HasMany.pm +++ b/lib/DBIx/Class/Relationship/HasMany.pm @@ -28,12 +28,13 @@ sub has_many { $guess = "using our class name '$class' as foreign key source"; } - # only perform checks if the far side appears already loaded - if (my $f_rsrc = try { $f_class->result_source_instance } ) { - $class->throw_exception( - "No such column '$f_key' on foreign class ${f_class} ($guess)" - ) if !$f_rsrc->has_column($f_key); - } +# FIXME - this check needs to be moved to schema-composition time... +# # only perform checks if the far side appears already loaded +# if (my $f_rsrc = try { $f_class->result_source_instance } ) { +# $class->throw_exception( +# "No such column '$f_key' on foreign class ${f_class} ($guess)" +# ) if !$f_rsrc->has_column($f_key); +# } $cond = { "foreign.${f_key}" => "self.${pri}" }; }