-
Notifications
You must be signed in to change notification settings - Fork 28
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
get_class() expects parameter 1 to be object, array given getting this error while trying to insert data in product table #173
Comments
I'm sending data using post request as array. Is there any particular format in which we have to pass data for insert |
@dsv4890 , what data are you trying to post, and to which route? That looks suspiciously like the tail end of an error message. Are you running against dev-master or 0.3.* of POData-Laravel? |
I am posting on route http://127.0.0.1:8000/odata.svc/Products using Post method |
ok |
@CyberiaResurrection I am running both dev-master and 0.3.* in separate projects but not getting any solution how to post data for crud operation using this package |
I have tried to send the response in atom formate and I'm getting an error |
@dsv4890 , thanks for trying that. What client are you using to send the requests? |
postman |
Can you please provide any kind of example or sample data for post request! |
It looks like you might have tripped over a difference in JMS serialiser versions - to check, you're running minimum-stability: dev on both your test projects? I've pushed a fix to the odata-metadata project - can you please composer update and see what pain persists? |
ok |
I have run composer update command but still getting the same error |
OK, here's the best I can find on line (from the OData v3 dox - http://www.odata.org/documentation/odata-version-3-0/atom-format/ , section 6.1) for atom format:
|
sending data in the same format i'm getting following error when i'm trying to use this in 0.3.* project i'm getting following error |
Is crud operation not possible using this package? |
Hi |
ok Thank you |
No description provided.
The text was updated successfully, but these errors were encountered: