I see. What’s happening in my case is that the join is working and data appears to be correct, but that is by sheer coincidence of ids, not because it is matching on tabl_name. I looked at the generated query to discover it’s basically ignoring my finder
i.e., I can delete my finder or keep it and it makes no difference to the generated query.
.
.
UPDATE:
The reason my finder was being ignored is that I was using 'setFinder' => […conditions…]
within my ->belongsToMany()
setup. I changed it to 'finder' => […conditions…]
and that gave me the error:
non-numeric value encountered [ CORE/src/ORM/Association/BelongsToMany.php , line 1120
Just to try to humor it, I changed my finder conditions to 'EntityTags.id' => 12
— internal server error