PhpStorm が $model をクラスに解決できない場合に $entityManager->createQueryBuilder()->from($model, $expr) を報告します。