Doctrine\ORM\Persisters\ManyToManyPersister::getFilterSql
Generates the filter SQL for a given mapping.
This method is not used for actually grabbing the related entities but when the extra-lazy collection methods are called on a filtered association. This is why besides the many to many table we also have to join in the actual entities table leading to additional JOIN.
Signature
public function getFilterSql(array
$mapping )
Parameters
$mapping
— array- Array containing mapping information.
Returns
- string
- The SQL query part to add to a query.