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
Read Query Handler returns null #40
Comments
How does the migration file for |
I haven't touched the migration file. I copied the |
Using PHPMyAdmin look at the |
Yes all the timestamps look okay and they are exactly as the |
I've also created new |
Ok. It seems data from database is not hydrated into the |
Thanks. They're virtually the same except that all Any other suggestions? Thanks so far BTW. You're great! |
I've rerun the migration and added the Now I'm getting NULL on the entries |
Not really. Try to compare to everything to how it is done with the original Todo's. |
OK I figured the issue out! I had the Now I wonder how to solve the issue of running consecutive queries moving forward? |
Sorry if I wasn't clear enough, but removing |
Hi there,
Great work on the Skeleton API!
I'm new to Slim API and have been playing around and have duplicated the 'todos' table with an 'entries' table. The GET routing is working fine but I can't POST anything. I get the error 'Call to a member function getTimestamp() on null'.
Debugging this leads me to $entry ($todo in your case) returning null in the following block of code (note that all handlers have been added to the dependencies file:
Here's how the objects look like:
When I print the $todo object in the todo POST route, I'm successfully getting data instead of NULL.
Do you have any idea why this could be the case?
The text was updated successfully, but these errors were encountered: