renamed entity kndigung to kuendigung
This commit is contained in:
@@ -390,7 +390,7 @@ class CVmhMietverhltnis extends \Espo\Services\Record
|
||||
throw new Forbidden('No read access to Mietverhältnis');
|
||||
}
|
||||
|
||||
if (!$this->acl->checkScope('CKndigung', 'create')) {
|
||||
if (!$this->acl->checkScope('CKuendigung', 'create')) {
|
||||
throw new Forbidden('No create access to Kündigung');
|
||||
}
|
||||
|
||||
@@ -413,13 +413,13 @@ class CVmhMietverhltnis extends \Espo\Services\Record
|
||||
}
|
||||
|
||||
// 5. Create Kündigung entity
|
||||
$kuendigung = $this->entityManager->createEntity('CKndigung', (array)$data);
|
||||
$kuendigung = $this->entityManager->createEntity('CKuendigung', (array)$data);
|
||||
|
||||
if (!$kuendigung) {
|
||||
throw new \RuntimeException('Failed to create Kündigung');
|
||||
}
|
||||
|
||||
$kuendigungRepo = $this->entityManager->getRepository('CKndigung');
|
||||
$kuendigungRepo = $this->entityManager->getRepository('CKuendigung');
|
||||
|
||||
// 6. Link Mietverhältnis to Kündigung
|
||||
$kuendigungRepo
|
||||
|
||||
Reference in New Issue
Block a user