src/Leevel/Database/Ddd/Entity.php
public function handleEvent(string $event, ...$args): void
    {
        if (null === static::$leevelDispatch) {
            return;
        }

        $this->isSupportEvent($event);

        array_unshift($args, $this);
        array_unshift($args, "entity.{$event}:".get_class($this));

        static::$leevelDispatch->handle(...$args);
    }
public function handleEvent(string $event, ...$args): void
    {
        if (null === static::$leevelDispatch) {
            return;
        }

        $this->isSupportEvent($event);

        array_unshift($args, $this);
        array_unshift($args, "entity.{$event}:".get_class($this));

        static::$leevelDispatch->handle(...$args);
    }
执行模型实体事件.

@param string $event