/** @ManyToMany(target = "Tag", though = "UserTag") */
protected $tags;
At first glance, I read this as "entity has many TagthroughUserTag" where UserTag is the join class somewhat. Thought to fix that and realized 👇🏾 this is how it's defined.
Could this be a case of a typo carried over because of IDE smarts? If this isn't the case, what's the thought process? I see this commit introduces "though", but the commit message doesn't really say why.
I know this is 2 years old, so it's a long shot; but I had to ask
I'm reading through the docs and I see
At first glance, I read this as "entity has many
Tag
throughUserTag
" whereUserTag
is the join class somewhat. Thought to fix that and realized 👇🏾 this is how it's defined.https://github.com/cycle/annotated/blob/master/src/Annotation/Relation/ManyToMany.php#L59
Could this be a case of a typo carried over because of IDE smarts? If this isn't the case, what's the thought process? I see this commit introduces
"though"
, but the commit message doesn't really say why.I know this is 2 years old, so it's a long shot; but I had to ask