Making code PSR2 compliant
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -6,7 +6,7 @@ use Model\BaseModel;
|
||||
|
||||
class CompanyStructure extends BaseModel
|
||||
{
|
||||
var $_table = 'CompanyStructures';
|
||||
public $table = 'CompanyStructures';
|
||||
|
||||
public function getAdminAccess()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ use Model\BaseModel;
|
||||
|
||||
class Timezone extends BaseModel
|
||||
{
|
||||
var $_table = 'Timezones';
|
||||
public $table = 'Timezones';
|
||||
|
||||
public function getAdminAccess()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user