$builder = $this->modelsManager->createBuilder();
$builder->from('Orders');
$builder->addFrom('Publishers', 'p');
$builder->innerJoin('Orders', 'o.publisher_id = p.id', 'o');
$builder->where('p.manager_id = :employee_id:', ['employee_id' => $employee_id]);
$builder->orderBy('o.id DESC');
$orders = $builder->getQuery()->getSingleResult();
SQL: SELECT o.* FROM Orders o INNE JOIN Publishers p ON o.publisher_id = p.id WHERE p.manager_id = $employee_id ORDER BY o.id DESC;
model: Orders / table: xms_orders
model: Publishers / table: xms_publishers