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

Unable to select then update model #82

Open
matheval opened this issue Aug 17, 2021 · 2 comments
Open

Unable to select then update model #82

matheval opened this issue Aug 17, 2021 · 2 comments

Comments

@matheval
Copy link

matheval commented Aug 17, 2021

When i select model by id and then save, exception error occurs

use WeDevs\ORM\WP\Woo_Abcd_Connection_Model as Abcd_Connection;
$hihi = Abcd_Connection::find(1);
$hihi->name = 'foo';
$hihi->save();`

image

@kevinjavitz
Copy link

I got the exact same error, it seems save() is not supported meaning this project is only for queries?

kevinjavitz added a commit to kevinjavitz/wp-eloquent that referenced this issue Jan 17, 2022
tareq1988#82 maybe you know a better fix let me now
@kevinjavitz
Copy link

this fixes it and saving works, I just updated his sample model from the readme: #83

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