Closed hrach closed 9 years ago
It's also for case when table has a composite key for example.
category (id) category_has_tag (category_id, tag_id, extra_column) tag (id)
Right?
@f3l1x no.
Could you please help me with this relationships? It is m:n, but how to define it?
Just define the middle entity. And composite PK. See TagFollower in tests.
@hrach Thank you.
There is, probably, a bug when entity has primary modifier redefined with it's primary key. This will include a bigger refactoring, probably with a BC break, each entity will have to define it's primary property and Nextras\Orm\Entity\Enity will not have a predefined primary key. Will solve #75.