#1 Re: mORMot 1 » Demo application + some question / remarks. » 2021-03-28 13:04:09

Alright, I got it: TSQLTasks equates a pivot table descending from TSQLRecordMany, and many-to-many relations are handled by the ORM instead of DBMS constraints.

#2 Re: mORMot 1 » Demo application + some question / remarks. » 2021-03-27 20:23:37

Hi:

I am new to mORMot. Looking at the samples and reading the documentation, I noticed a potential problem in this demo:
... \mORMot\SQLite3\Samples\ThirdPartyDemos\Migajek\synopse-sqlite-demo

In uCustomer.pas, there is a forward declaration on line 10:
  TSQLTasks = class;

Although it is included in:
  TSQLCustomer = class(TSQLPerson)
  private
    fTasks: TSQLTasks;
  published
    property Tasks: TSQLTasks read fTasks;
  end;

The corresponding Customer table in the generated database does not include the forward declared Tasks field. Is this by design?

Thank you in advance,

Navid

Board footer

Powered by FluxBB