Making code PSR2 compliant

This commit is contained in:
gamonoid
2017-09-24 19:23:30 +02:00
parent 05b57e0236
commit 6c61577583
160 changed files with 1432 additions and 1086 deletions

View File

@@ -24,8 +24,15 @@ class CompanyAdminManager extends AbstractModuleManager
public function initializeDatabaseErrorMappings()
{
$this->addDatabaseErrorMapping("CONSTRAINT `Fk_Employee_CompanyStructures` FOREIGN KEY (`department`) REFERENCES `CompanyStructures` (`id`)", "Can not delete a company structure while employees are assigned to it");
$this->addDatabaseErrorMapping("CONSTRAINT `Fk_CompanyStructures_Own` FOREIGN KEY (`parent`) REFERENCES ", "Can not delete a parent structure");
$this->addDatabaseErrorMapping(
"CONSTRAINT `Fk_Employee_CompanyStructures` FOREIGN KEY (`department`)
REFERENCES `CompanyStructures` (`id`)",
"Can not delete a company structure while employees are assigned to it"
);
$this->addDatabaseErrorMapping(
"CONSTRAINT `Fk_CompanyStructures_Own` FOREIGN KEY (`parent`) REFERENCES ",
"Can not delete a parent structure"
);
}
public function setupModuleClassDefinitions()