eav-manager icon indicating copy to clipboard operation
eav-manager copied to clipboard

Querying is not working as the documentation says

Open johnkrovitch opened this issue 4 years ago • 1 comments

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.

johnkrovitch avatar Mar 11 '20 15:03 johnkrovitch

The issue seems to be related with API Platform extension

johnkrovitch avatar Mar 11 '20 15:03 johnkrovitch