I’m having problems with something that seemed simple at begin.
Which is the best way to add and delete objects from another in a Many-Many relation?
In other words, having Post and Tag, so having too 3 tables in database: post, tag, post_has_tag. Which is the best way to add an existing Tag to an existing Post?
The only way I could think of for now is create a method Post::addTag(tag:Tag) that create a database insert query by hand.
There is another better way?
PS: I’m still checking the extensions that recommended to me:
erama, there is no built-in way to do so. You can either look at extensions available or implement your own solution. We’ve planned this functionality for a future major version.