Hi I have a invoice class and an enitity class.
The entity class has a list of invoices The invoice class has a sender of type entity and receipent of type entity. It is not necessary for the invoice class to have sender in my case but will have a receipent.
When I create the invoice without the sender and save, I get two rows created in the entity table, one for receipent and another row which has everything set to NULL (which i preassume relates to the sender object). I do not want this row in the table. Can you please point me in the right direction
Also in the invoice table I have a column which gets created call Entity_Id. I dont want this column to be created as well. I preassume this get created because I have list of invoices in the entity object. This invoice should already be bound to the recepient id that I have in the invoice class
|