TEmailOutgoingEmail = class(TEmail)
As far as I understood inserting a TEmailOutgoingEmail with the ORM will actually insert a TEmail. The strange thing is that I get an error that the generator S_TEMAILOUTGOINGEMAIL_EMAIL_ID is not defined. It looks like it tries to use the sequence of the virtual table instead of the non virtual one (the one I expected to be used).
Am I doing something here that I shouldn’t? This construction worked fine in another project were I manually set the primary keys.