if(modelName.startsWith("\\")) {
return PhpElementsUtil.getClassInterface(phpClass.getProject(), modelName);
}
// repositoryClass="Classname" pre-append namespace here
PhpNamedElementImpl phpNamedElementImpl = PsiTreeUtil.getParentOfType(phpClass, PhpNamedElementImpl.class);
if(phpNamedElementImpl != null) {
String className = phpNamedElementImpl.getFQN() + "\\" + modelName;
PhpClass namespaceClass = PhpElementsUtil.getClassInterface(phpClass.getProject(), className);
if(namespaceClass != null) {
return namespaceClass;
}
}