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

[2.1.x] Phalcon/Mvc/Model/Validator namespace #11887

Closed
Jurigag opened this issue Jun 14, 2016 · 6 comments
Closed

[2.1.x] Phalcon/Mvc/Model/Validator namespace #11887

Jurigag opened this issue Jun 14, 2016 · 6 comments
Assignees
Labels
breaks bc Functionality that breaks Backwards Compatibility enhancement Enhancement to the framework
Milestone

Comments

@Jurigag
Copy link
Contributor

Jurigag commented Jun 14, 2016

Why we keep this namespace ? Is there any way to use old validation in models ? I don't see it, validate method accepts only Phalcon\ValidationInterface.

At least we should trigger deprecated and inform that this is deprecated and Phalcon\Validation can be used only on creating of any validator.

@sergeyklay
Copy link
Contributor

sergeyklay commented Jun 14, 2016

We declared as deprecated valdators from Phalcon/Mvc/Model/Validator namespace, but validators is there

@Jurigag
Copy link
Contributor Author

Jurigag commented Jun 14, 2016

https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/model/validator.zep construct method looks the same. I know if we will try to use code from 2.0.x validate method on 2.1.x without changes it will throw some exception or error but still if someone will create just some validator object then i think he should be informed about deprecation of it.

@sergeyklay sergeyklay added this to the 4.0.0 milestone Aug 12, 2016
@sergeyklay
Copy link
Contributor

Refs: #12098

@SidRoberts
Copy link
Contributor

@Jurigag
Copy link
Contributor Author

Jurigag commented Oct 7, 2016

Yea, we need to mark it as deprecated, possibly add option to use both validation ways and remove old validation in 4.0.0.

Like change validate method to accept both Phalcon\Mvc\Validator\* and Phalcon\Validation, mark them as deprecated, from later versions trigger deprecated if using it(or already now ?), in 4.0.0 remove it.

Just in my opinion in 3.1.0:

In 3.2.0 make deprecated methods(so it will trigger_error):

@sergeyklay sergeyklay changed the title [2.1.x]Phalcon/Mvc/Model/Validator namespace [2.1.x] Phalcon/Mvc/Model/Validator namespace Nov 27, 2016
@sergeyklay sergeyklay added breaks bc Functionality that breaks Backwards Compatibility enhancement Enhancement to the framework labels Jul 17, 2017
@stale stale bot added the stale Stale issue - automatically closed label Apr 16, 2018
@sergeyklay sergeyklay reopened this May 2, 2018
@stale stale bot removed the stale Stale issue - automatically closed label May 2, 2018
@phalcon phalcon deleted a comment from stale bot Dec 22, 2018
@niden niden self-assigned this Dec 22, 2018
@niden
Copy link
Member

niden commented Dec 23, 2018

This has already been addressed

@niden niden closed this as completed Dec 23, 2018
@niden niden added the 4.0 label Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaks bc Functionality that breaks Backwards Compatibility enhancement Enhancement to the framework
Projects
None yet
Development

No branches or pull requests

4 participants