nextras / orm-demo-nette

ORM demo in Nette framework
MIT License
14 stars 6 forks source link

Probably bad relationship type #5

Closed zraly closed 7 years ago

zraly commented 7 years ago

Post - tag is not a self-referencing relationship, so maybe there should be m:n instead of m:m?

https://github.com/nextras/orm-demo/blob/master/app/model/orm/tags/Tag.php#L14 https://github.com/nextras/orm-demo/blob/master/app/model/orm/posts/Post.php#L21

hrach commented 7 years ago

m:n or m:m or n:n or n:m are synonyms. the correct form is m:m as (many to many), other versions are deprecated and should be removed in the future.