Via TCA I wanted to create a select for fe_users within another entity. Unfortunately fe_users has quite a lot of entries in this case and therefore loading was a pain when trying to edit an entry. But type => group is a good alternative:
'user' => array(
'exclude' => 0,
'label' => 'User',
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'fe_users',
'items' => array(
array('', 0),
),
'behaviour' => [
'enableCascadingDelete' => 0,
],
'maxitems' => 1
)
),