new method in dao "getWithDependencies"