public function prePersist(LifecycleEventArgs $args) : void
    {
        $entity = $args->getEntity();

        if ($entity instanceof CreatedInterface) {
            $entity->setCreatedAt(new \DateTime());
        }
    }