I am trying to get entries that either their title has the keyword or their category field title. I am getting them from my plugin, not twig. I tried like this:
$keywordCategory= Category::find()->title($keyword)->all(); $entries = Entry::find()->title($keyword)->relatedTo($keywordCategory)->all();
but it must be in the title and the category field. Is there a way to check using where and orWhere?