Doctrine updating the timestamp without updating the entity

I have two entities viz WallPost and WallPostLike and they are related by OneToMany relationship.

WallPost.php

#[ORMTable(name: "wall_posts")]
class WallPost
{
    use UserIdTrait;
    use DistrictIdTrait;
    use ModifiedTrait;

    #[ORMOneToMany(mappedBy: 'wallPost', targetEntity: WallPostLike::class, fetch: 'EAGER')]
    private Collection $wallPostLikes;

    public function __construct()
    {
        $this->wallPostLikes = new ArrayCollection();
    }

    /**
     * @return Collection<int, WallPostLike>
     */
    public function getWallPostLikes(): Collection
    {
        return $this->wallPostLikes;
    }
}

WallPostLike.php

#[ApiResource(
    shortName: 'WallPostLike',
    paginationEnabled: false,
    graphQlOperations: [
        new Mutation(
            resolver: WallPostLikesResolver::class,
            args: [
                WallPostLikeEnum::WALL_POST_ID => ['type' => 'String!'],
                PostParam::CURRENT_SCHOOL_ID   => ['type' => 'String!'],
            ],
            name: 'toggle',
        ),
    ],
)]
#[ORMTable(name: "wall_post_likes")]
class WallPostLike
{
    use ModifiedTrait;

    #[ORMManyToOne(targetEntity: WallPost::class, inversedBy: 'wallPostLike')]
    #[ORMJoinColumn(name: 'wall_post_id', referencedColumnName: 'id', nullable: false)]
    private WallPost $wallPost;

    public function getWallPost(): WallPost
    {
        return $this->wallPost;
    }

    public function setWallPost(WallPost $wallPost): self
    {
        $this->wallPost = $wallPost;

        return $this;
    }
}

The WallPost Entity has modified column to track the timestamp when entity updates. The problem is the timestamp of modified column is updated when I call toggleWallPostLike API to like a post. The strange thing is the timestamp is already updated even before reaching the resolver function of the requested API.

ModifiedTrait.php

<?php
declare(strict_types=1);

namespace AppTraitsEntity;

use DateTime;
use DoctrineORMMapping as ORM;
use GedmoMappingAnnotationTimestampable;

trait ModifiedTrait
{
    #[Timestampable(on: 'update')]
    #[ORMColumn(name: 'modified', type: 'datetime')]
    private DateTime $modified;

    public function getModified(): DateTime
    {
        return $this->modified;
    }

    public function setModified(DateTime $modified): self
    {
        $this->modified = $modified;

        return $this;
    }
}

To check, whether something is really updated, I have added PreUpdate Lifecycle event in WallPost entity and to my surprise two of the fields viz user_id and district_id of this entity has changes in their value as shown in following image

enter image description here

Here is how UserIdTrait.php looks like for reference

<?php

declare(strict_types=1);

namespace AppTraitsEntity;

use DoctrineORMMapping as ORM;
use DoctrineORMMappingColumn;
use SymfonyBridgeDoctrineIdGeneratorUuidGenerator;

trait UserIdTrait
{
    #[Column(name: 'user_id', type: 'uuid')]
    #[ORMGeneratedValue('CUSTOM')]
    #[ORMCustomIdGenerator(UuidGenerator::class)]
    private string $userId;

    public function getUserId(): string
    {
        return $this->userId;
    }

    public function setUserId(string $userId): self
    {
        $this->userId = $userId;

        return $this;
    }
}

I am not really sure how doctrine / Timestampable extension works behind the scene but this should not be the desired behavior.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật