Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning for $rs->new instead of new_result #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcsnolte
Copy link

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.

@ribasushi
Copy link
Collaborator

Sorry for the delayed response. The warning as implemented becomes rather noisy in legacy cdbi-like codestyles that I am not yet willing to deprecate (despite the general attitude of "let it burn" on #dbic). I have a semi-working class chain prototype which will allow the code you contributed to be less disruptive to such environments. This is why for the time being your PR is "on hold", I just wanted to give you some feedback.

@mcsnolte
Copy link
Author

Makes sense and sounds good, thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants