#1 2025-04-26 09:40:52

flydev
Member
From: France
Registered: 2020-11-27
Posts: 81
Website

TGuid orm property (RTTI)

Hi there,

A small question, is TGuid supported as published property on Orm class?  I have no issue with delphi but on FPC I get "Error: This kind of property cannot be published".

Offline

#2 2025-04-26 09:47:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,005
Website

Re: TGuid orm property (RTTI)

It is a FPC limitation.
On recent Delphi (since Delphi XE6 IIRC), it works fine.

But you can still define it manually at model level using a virtual method.
https://synopse.info/forum/viewtopic.ph … 997#p10997

Offline

#3 2025-04-26 09:50:50

flydev
Member
From: France
Registered: 2020-11-27
Posts: 81
Website

Re: TGuid orm property (RTTI)

Hi @ab I had read this thread two times but missed this message! thanks smile

Offline

#4 2025-04-26 10:48:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,005
Website

Re: TGuid orm property (RTTI)

In fact, TGuid fields are part of the regression tests:
https://github.com/search?q=repo%3Asyno … &type=code

Offline

Board footer

Powered by FluxBB