fetching multiple entity associations without Ramsey Doctrine uuid

I am using right now Symfony and Ramsey to generate mysql binary uuids and everything is working perfectly, both storage and data recovering. I want to decouple from this
library and generate my own database ids. I have created a custom class (CustomBinaryUuid) that generates Uuids from ramsey’s php uuid package (ramsey/uuid) and
converted to binary ($uuid->toBytes()). Ids are generated and stored properly.

The problem comes when recovering some data. I have three entities: user, group and comment. Groups have owner users and joined users (through pivot table). Comments belong to users and groups.
When I load the data from the User entity (their owned groups, joined groups and comments) with Ramsey it is able to recover ALL the information properly. But when trying to do the same using CustomBinaryUuid
and getting the data from the PersistentCollections with this code:

$ownedGroups = $entityItem->getOwnedGroups()->getValues();
$joinedGroups = $entityItem->getJoinedGroups()->getValues();
$comments = $entityItem->getComments()->getValues();

it doesn’t fetch “comments”. If I execute the following code just moving “comments” to the first position, only comments are recovered, ownedGroups and joinedGroups are empty.

$comments = $entityItem->getComments()->getValues();
$ownedGroups = $entityItem->getOwnedGroups()->getValues();
$joinedGroups = $entityItem->getJoinedGroups()->getValues();

With Ramsey, on both cases, all the data from all entities is recovered properly.

The only change I do from Ramsey to CustomBinaryUuid is on the Entities orm xml:

<!-- Ramsey -->        
<id name="id" type="uuid_binary" column="id">
    <generator strategy="CUSTOM"/>
    <custom-id-generator class="RamseyUuidDoctrineUuidV7Generator"/>
</id>
<!-- CustomBinaryUuid -->
<id name="id" type="binary" column="id" />

I have noticed that if I change just one entity id to CustomBinaryUuid, only this entity doesn’t recover all the information, the other entities using Ramsey get everything.

This is the CustomBinaryUuid class:

class CustomBinaryUuid
{
    public function __construct(private $uuid) {}

    public static function random(): self
    {
        $factory = new UuidFactory;
        $factory->setRandomGenerator(new CombGenerator(
            $factory->getRandomGenerator(),
            $factory->getNumberConverter()
        ));
        $factory->setCodec(new GuidStringCodec(
            $factory->getUuidBuilder()
        ));

        return new self($factory->uuid7());
    }

    public static function fromString(string $uuid): self
    {
        $factory = new UuidFactory;
        $uuidElement = $factory->fromString($uuid);
        return new self($uuidElement);
    }

    public function toBinary()
    {
        return $this->uuid->getBytes();
    }

    public function toString(): string
    {
        return $this->uuid->toString();
    }

}

I have been digging into Ramsey documentation and code with no luck of finding what is special on it.

What am I missing?

Thanks you.

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