Fix API mismatch between new_related() and new_result() (RT#78336)
authorPeter Rabbitson <ribasushi@cpan.org>
Sat, 3 Nov 2012 17:12:06 +0000 (18:12 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 3 Nov 2012 18:24:56 +0000 (19:24 +0100)
commit81e4dc3d93646a11bee973606a31be412f23cd5f
treef976265b98fb8aad763f22adc2ac11a42ee23cea
parent363e4e04aa57c5c99a4b4cf747181f070b74d185
Fix API mismatch between new_related() and new_result() (RT#78336)

Almost 7 years ago a refactor in fea3d045 fed an (undocumented) $attrs
parameter from new_related() to new_result(), while new_result() never
expected (and ignored) said parameter. Since this is an undocumented
feature, which nobody complained about for all this time - document
extensively and kill it with fire.
Changes
lib/DBIx/Class/Relationship/Base.pm
lib/DBIx/Class/ResultSet.pm
t/cdbi/09-has_many.t