You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how manage X-To-Many relationships with Atlas.Transit.
Example :
Article: a class who represent an article (table: article)
Tag: a class who represent a tag (table: tag)
article_tag: a table to make relationship between article and tag tables, and to have multiple tags for one article
The idea would be to have a method : Article::getTags() who returns a collection of tags. When we persist the article object, the associates tags would be save in relationship table.
It's possible with the current beta? Or that's needs development?
Regards,
Ronan
The text was updated successfully, but these errors were encountered:
Hi @ElGigi -- you should be able to do that right now, provided you have the most-recent Atlas releases; see, for example, the TransitTest::testAggregate() method, where tags get loaded up into a collection.
As a side note, please remember that Transit has not even had an alpha release yet. It is still under development, though I do try to make 0.x releases when I commit major changes.
Hi,
I would like to know how manage X-To-Many relationships with Atlas.Transit.
Example :
The idea would be to have a method : Article::getTags() who returns a collection of tags. When we persist the article object, the associates tags would be save in relationship table.
It's possible with the current beta? Or that's needs development?
Regards,
Ronan
The text was updated successfully, but these errors were encountered: