I switched my application now to the FireDAC db access.
Now I get some time, not stable reproduceable the following error when I want to remove an object from database by a TNavigatior bound to a TAureliusDataSet. This calls:
Manager.Remove(Person); // seems to work well
Manager.Flush; // But here the exception happens
"Class TFDPhysPreprocessor is not a valid Entity. [Entity] attribute missing."
in Aurelius.Commands.CommandPerformerFactory.pas line 77:
function TCommandPerformerFactory.GetCommand<T>(Clazz: TClass): T;
When exactly this code is called? Are there lists (ManyValuedAssociation) in other classes where this Person is present? If yes, you must be sure to remove that reference from those lists otherwise it will reference an invalid object (since Remove) destroys the object.
>> There is only relations defined pointing to the Person object.
If they are lists you should remove Person from those lists. If they are not lists, have you changed the value of those properties since Manager was last flushed/created?