eav-manager
eav-manager copied to clipboard
Querying is not working as the documentation says
The following code does not work :
$queryBuilder = $this->finder->createFamilyBuilder('Publication');
$visibleAttribute = $this->finder->getFamily('PublishedPublication')->getAttribute('visible');
$queryBuilder->apply(
$queryBuilder
->a('publishedPublications')
->join()
->attribute($visibleAttribute)
->equals(true)
);
But the documentation says it is the way to join a value from another table. The EAV throws an error : "Unknown column 'a1_.attribute_code' in 'on clause'". It try to fetch the attribute code from the values table which does not exists.
The issue seems to be related with API Platform extension