Has many to many relationship not clear

I am Trying to add and search Posts based on Tags But Unable to get and set data for a many to many relationship.

the source of my whole project is at https://github.com/viciousrascl/lifelog

Any help is appreciated.

What exactly are you stuck on? Have you read the documentation? What is unclear there that we can help you with?

I tried to add tags to my posts but I am not able to set and get records for a many to many relatationship between the post and tag . I do not get any error the program does not break but no data is saved or retrived.

What exactly are you stuck on? Have you read the documentation? What is unclear there that we can help you with?

Can you please post the code that sets up the relationship between Post and Tag?