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

problem with save new model in database #20

Open
hamedmoody opened this issue Apr 18, 2016 · 1 comment
Open

problem with save new model in database #20

hamedmoody opened this issue Apr 18, 2016 · 1 comment

Comments

@hamedmoody
Copy link

hi
i create a model in wordpress but not save in database:

<?php
class Etekaf extends \WeDevs\ORM\Eloquent\Model {

}
$et = new Etekaf();
$et->name = 'my Name';
$et->save();

and static 'create' method error:

Fatal error: Uncaught exception 'Illuminate\Database\Eloquent\MassAssignmentException' with message 'email' in C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\vendor\illuminate\database\Eloquent\Model.php:404 Stack trace: #0 C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\vendor\illuminate\database\Eloquent\Model.php(259): Illuminate\Database\Eloquent\Model->fill(Array) #1 C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\vendor\tareq1988\wp-eloquent\src\Eloquent\Model.php(19): Illuminate\Database\Eloquent\Model->__construct(Array) #2 C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\vendor\illuminate\database\Eloquent\Model.php(527): WeDevs\ORM\Eloquent\Model->__construct(Array) #3 C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\dyedd-extra-option.php(96): Illuminate\Database\Eloquent\Model::create(Array) #4 C:\xampp\htdocs\daneshjooyar\wp-settings.php(254): include_once('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\daneshjooyar\wp-co in C:\xampp\htdocs\daneshjooyar\wp-content\plugins\dyedd-extra-option\vendor\illuminate\database\Eloquent\Model.php on line 404

@tareq1988
Copy link
Owner

Take a look here

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

2 participants