Hello
I have the same issue, and I have the following code
$criteria = Criteria::fromInput($this->di,'Categories', $this->request->getPost());
$result = $this->modelsManager
->createBuilder($criteria->getParams())
->andWhere('languagekey = :languagekey:', ['languagekey' => 'en'])
->getQuery()
->execute();
Categories is my model (without namespaces), but executing this piece of code into my program It shows an empty screen with the following message:
At least one model is required to build the query
Do i forgot something?
Running code like this:
$query = Criteria::fromInput($this->di, "Categories", $criteria);
$extra = $this->modelsManager->createBuilder($query->getParams());
$this->persistent->searchParams = $query->getParams();
works normal.