Skip to content

[QUESTION] X-To-Many Relationships #8

@ElGigi

Description

@ElGigi

Hi,

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions