Working with Target per Entity Hierarchy

Posts   
 
    
Peterd
User
Posts: 1
Joined: 14-Jun-2016
# Posted on: 17-Oct-2016 19:58:07   

Hey, Im using LLBLGen Pro 4.1Final (which is set as the co. implementation) I have a TPEH on an int field of a table with the superType discriminator set to 0 and the SubType set to one (boolean field wouldn't work).

The SubType entity works fine and gives me a subset of values (think softDelete) The SuperType entity gives me back everything regardless of the discriminator value of 0 which again is fine.

What I cannot do is save a record to the SuperType entity to include the discriminator field as its set to readonly and cannot be changed.

So how do I update this field to the sql tables as required ?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 17-Oct-2016 20:36:20   

Why do you want to update the Discriminator field? Please not that Types should not be interchangeable. You can not change a SuperType to a SubType and vice versa.