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

stdClass::$column_name while creating new model #161

Closed
darki73 opened this issue May 16, 2017 · 3 comments
Closed

stdClass::$column_name while creating new model #161

darki73 opened this issue May 16, 2017 · 3 comments

Comments

@darki73
Copy link

darki73 commented May 16, 2017

Hello, just installed this plugin and trying to work with it. However, when i try to create new model, im getting the following error:
"Undefined property: stdClass::$column_name" on line 18 of D:\WebServer\Projects\Univer\vendor\laravel\framework\src\Illuminate\Database\Query\Processors\MySqlProcessor.php

What i did:

  1. Created new database table (through the builder)
  2. Tried to create new model (builder can see new database table)
  3. Upon clicking on the OK button, im getting error i've mentioned above
@darki73
Copy link
Author

darki73 commented May 16, 2017

Okay, i've found error:
Illuminate\Database\Query\Processors\MySqlProcessor.php line 18:
return $r->column_name;
However, object contains column_name in upper case, so the following piece of code fixes problem:
return $r->COLUMN_NAME;
BUT, this is vendor package, so the error somewhere in the builder plugin

@stefina
Copy link

stefina commented Jul 20, 2017

I ran into the same problem and I could reproduce that the code-change @darki73 suggested fixed it.

@LukeTowers
Copy link
Contributor

Fixed by laravel/framework#21037

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

No branches or pull requests

3 participants