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

ProductsForm - Numericality Not Found #30

Closed
mabon opened this Issue Oct 17, 2014 · 5 comments

Comments

Projects
None yet
6 participants
@mabon

mabon commented Oct 17, 2014

Fatal error: Class 'Phalcon\Validation\Validator\Numericality' not found in /.../invo/app/forms/ProductsForm.php on line 52

Changed line 9 from:

use Phalcon\Validation\Validator\Numericality;

to:

use Phalcon\Mvc\Model\Validator\Numericality;

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 17, 2014

Collaborator

Are you using Phalcon 2?

Collaborator

ghost commented Oct 17, 2014

Are you using Phalcon 2?

@mabon mabon closed this Oct 17, 2014

@mabon

This comment has been minimized.

Show comment
Hide comment
@mabon

mabon Oct 17, 2014

Arg, didn't mean to close :\

Nope, 1.3.3_0 (MacOSX - MacPorts)
php55-phalcon @1.3.3_0 (active)

mabon commented Oct 17, 2014

Arg, didn't mean to close :\

Nope, 1.3.3_0 (MacOSX - MacPorts)
php55-phalcon @1.3.3_0 (active)

@mabon mabon reopened this Oct 17, 2014

@belgy

This comment has been minimized.

Show comment
Hide comment
@belgy

belgy Nov 6, 2014

I had the same problem, but after changing the line 9 as jguthery said, it work fine.
Installed phalcon_x86_VC11_php5.5.0_1.3.4 on XAMPP (Windows 8)
PHP Version 5.5.11

belgy commented Nov 6, 2014

I had the same problem, but after changing the line 9 as jguthery said, it work fine.
Installed phalcon_x86_VC11_php5.5.0_1.3.4 on XAMPP (Windows 8)
PHP Version 5.5.11

@kaiohken1982

This comment has been minimized.

Show comment
Hide comment
@kaiohken1982

kaiohken1982 Nov 19, 2014

Contributor

Same issue here, even the doc for 1.3.0 says a different path for the Numericality class http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Validator_Numericality.html

BUT if you change the class path, the creation of a new product will stop to work ($form->isValid() will throw an exception with message 'Wrong number of parameters')

Contributor

kaiohken1982 commented Nov 19, 2014

Same issue here, even the doc for 1.3.0 says a different path for the Numericality class http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Validator_Numericality.html

BUT if you change the class path, the creation of a new product will stop to work ($form->isValid() will throw an exception with message 'Wrong number of parameters')

@sergeysviridenko

This comment has been minimized.

Show comment
Hide comment
@sergeysviridenko

sergeysviridenko Nov 8, 2017

Contributor

I couldn't reproduce this issue. it works fine for me. class Phalcon\Validation\Validator\Numericality is exist. I propose to close this issue.

Contributor

sergeysviridenko commented Nov 8, 2017

I couldn't reproduce this issue. it works fine for me. class Phalcon\Validation\Validator\Numericality is exist. I propose to close this issue.

@sergeyklay sergeyklay closed this Nov 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment