I have a section with a Super Table field that has an entry field. Now I want to find the entries that have a relation to that entry.

I found this answer here. This but I can not get it to work with the entry field type.

query on Super Table field's date field

Thank you for your help

 $events = Entry::find()
        ->leftJoin('supertableblocks', 'supertableblocks.ownerId = entries.id')
        ->leftJoin('stc_foo', 'stc_foo.elementId = supertableblocks.id')
        ->where(I don't know what to do here with the entry field)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.