getRepository('Company')->findAll(); foreach ($companies as $company) { $company->CheckInvalidTasks($echo); $lazyaccs = $company->GetLazyAccounts(); $offlineaccs = $company->GetOfflineAccounts(); if ($echo) \Doctrine\Common\Util\Debug::dump($lazyaccs); $companyID = $company->id; CheckPush($lazyaccs, $echo); //напоминания о принятых, но неначатых задачах $urgent = $company->getUrgentProjects(); // \Doctrine\Common\Util\Debug::dump($urgent); foreach ($urgent as $proj) if (intval($proj->getStatus()) < 5) TasksAssign('', true, $proj->id, $echo, 3000000000); TasksAssign('', true, 0, $echo, 3000000000); }