feat: Refactor CPuls entity and related resources; enhance localization, update layouts, and improve validation logic
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
namespace Espo\Custom\Hooks\CPuls;
|
||||
|
||||
use Espo\ORM\Entity;
|
||||
use Espo\ORM\Repository\Option\SaveOptions;
|
||||
use Espo\Core\Hook\Hook\BeforeSave;
|
||||
|
||||
class UpdateTeamStats implements BeforeSave
|
||||
@@ -10,7 +11,7 @@ class UpdateTeamStats implements BeforeSave
|
||||
private \Espo\ORM\EntityManager $entityManager
|
||||
) {}
|
||||
|
||||
public function beforeSave(Entity $entity, array $options): void
|
||||
public function beforeSave(Entity $entity, SaveOptions $options): void
|
||||
{
|
||||
// Zähle Dokumente
|
||||
if ($entity->isNew() || $entity->isAttributeChanged('id')) {
|
||||
|
||||
Reference in New Issue
Block a user