-
Notifications
You must be signed in to change notification settings - Fork 29
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
exception while saving Meta Data #24
Comments
Hello! Are you sure that this method is generating error? Could you please submit part of code from you application which generates this error? |
it was bcz i save method call in my code which was call thanks for your prompt response. |
can you suggest me best function to delete a post like product or order with deleting all records associated with this, like meta data, Thanks. |
I have no idea how this package works with ZF3. In Laravel application you could make something like this: $product = Product::find(1);
$product->meta()->delete(); This part of code will delete all product meta. To create e.g. product, take a look on this comment: #7 (comment). Creating order works in similar way. I will close this issue for now, if you have any more question feel free to write here. |
whenever I am creating/updating any meta data with
$order:find(1)
$order->saveField($field,$value);
It is Throwing Exception with Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'po_number' in 'field list' (SQL: update
wp_posts
setpost_modified_gmt
= 2021-06-24 12:28:16,po_number
= trweerter,wp_posts
.post_modified
= 2021-06-24 12:28:16 whereID
= 5410);I think it is because it is trying to update order dates in WP_POST with that field value also.
The text was updated successfully, but these errors were encountered: