Hello to everyone.
I have 2 tables. TableA and TableB. TableB use inheritance and extends TableA
It seems that everything works fine but I have one weird issue.
I use a method like this:
public void createElement(TableA _parentRecord, TableA _copyRecord)
{
TableA newRecord;
if (_copyRecord)
{
buf2Buf(_copyRecord, newRecord);
//Other Code
}
else
{
buf2Buf(_parentRecord, newRecord);
//Other Code
}I always recieve an error that inform that "
The field with ID '36' does not exist in table 'TableA'
I entered to the debugger inside the buf2Buf() to understand why this happens and I saw that the _from buffer is TableB and not TableA
even if I tried to cast again the buffers to TableA , when it goes inside the buf2buf method the type is TableB.
Does anyone know why this happens?