Closed zraly closed 7 years ago
Post - tag is not a self-referencing relationship, so maybe there should be m:n instead of m:m?
m:n
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
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.
Post - tag is not a self-referencing relationship, so maybe there should be
m:n
instead ofm: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