[DBIx-Class-Devel] [dbix-class] Add deprecation warning for
$rs->new instead of new_result (#31)
Steve Nolte
notifications at github.com
Tue Aug 20 17:17:14 GMT 2013
Per discussion with mst and ribasushi today in #dbix-class about calling new_result instead of new for row objects. The constructor will get hosed when using MooseX::NonMoose, so that is another reason to keep things clear by always calling new_result.
You can merge this Pull Request by running:
git pull https://github.com/mcsnolte/dbix-class deprecated_rs_new
Or you can view, comment on it, or merge it online at:
https://github.com/dbsrgits/dbix-class/pull/31
-- Commit Summary --
* Add deprecation warning for $rs->new instead of new_result
-- File Changes --
M lib/DBIx/Class/ResultSet.pm (6)
A t/resultset/deprecated_new.t (18)
-- Patch Links --
https://github.com/dbsrgits/dbix-class/pull/31.patch
https://github.com/dbsrgits/dbix-class/pull/31.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20130820/06c1e973/attachment.htm
More information about the DBIx-Class-Devel
mailing list