[Tip] Creating an association with single table inherited entity

0 votes
asked Dec 19, 2013 in How To & Manuals by Martin Freki Stradej Skipper developer (74,840 points)
edited Jul 30, 2014 by Martin Freki Stradej

If you need to create association with an inherited entity, there may occur following problem: inherited entity does not have ID (it is inherited from the parrent), but Skipper validators won't let you to create association with an entity without primary key.

1 Answer

0 votes
answered Jul 30, 2014 by Martin Freki Stradej Skipper developer (74,840 points)
 
Best answer

To create association with an inherited entity (without its own primary key) you need to set up ‘virtual ID’.

Create an ID inside the inherited entity and use it as an inverse field. This ‘virtual ID’ will be only used in a visual model, it will not be exported to the definitions, but it will be properly replaced by the inherited ID.

example

...