Issue #1847582 by amateescu: Create a foreign key to the target entity type base type in Entity-reference.