I'm following this tutorial: https://parse.com/tutorials/one-to-many-relationships
I see a Post is created and the current user attached. But I don't see the opposite, I don't see how the Post is attached to the user. And at the end it says: "The application should now be able to create Post objects, set a one-to-many relationship between Posts and PFUsers, as well as use a query to obtain all Posts associated with a given user." How is that possible? If I use that code, how can I retrieve all Posts that belong to a User if I never attached the Post to its User? Thanks in advance!
you can set the user as the post_owner of the post and query for posts that has the current user as their owner
Parse is not a pure relational database, this is not the natural way to do it.
The usual is define a pointer type in your child table, pointing out to the father table.
There is not this natural way of SQL access through subselects or Join.
But if you need to create a bidirectional relationship, you can do it by doing this.
https://parse.com/questions/bidirectional-relationship-one-to-many