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

Notice when saving a model introduced in 3.0.4 #12688

Closed
terax6669 opened this issue Mar 9, 2017 · 3 comments
Closed

Notice when saving a model introduced in 3.0.4 #12688

terax6669 opened this issue Mar 9, 2017 · 3 comments

Comments

@terax6669
Copy link

terax6669 commented Mar 9, 2017

Expected and Actual Behavior

Happens when trying to save empty string to a model.

Undefined index: column_name in phalcon/mvc/model.zep on line 2092

Provide minimal script to reproduce the issue

class a extends \Phalcon\Mvc\Model {

    public $column_name;
}

$a = new $a;
$a->column_name = '';
$a->save();

Details

  • Phalcon version: 3.0.4 Powered by Zephir => Version 0.9.6a-dev-aef205594b
  • PHP Version: PHP 7.0.16-3
  • Operating System: Debian 8.7
  • Installation type: https://packagecloud.io/phalcon/stable (3.0.4-2+extra)
  • Server: Nginx
  • Other related info (Database, table schema):
    PostgreSQL 9.6.0
    Column definition: column_name CHARACTER(3)
@Jurigag
Copy link
Contributor

Jurigag commented Mar 9, 2017

Yea i checked it and it's happening, will try to fix.

Jurigag added a commit to Jurigag/cphalcon that referenced this issue Mar 9, 2017
@Jurigag Jurigag mentioned this issue Mar 9, 2017
3 tasks
@sergeyklay
Copy link
Contributor

Fixed in the 3.1.x branch.

sergeyklay pushed a commit that referenced this issue Mar 9, 2017
@zGaron
Copy link

zGaron commented Apr 12, 2017

oops..

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

No branches or pull requests

4 participants