/**
* @internal
*/
class ExtensionDefinition extends ProductDefinition
{ protected function defineFields(): FieldCollection
{ $fields = parent::
defineFields();
$fields->
add( (new ManyToOneAssociationField('exposedExtension', 'my_extension_id', ProductManufacturerDefinition::
class))->
addFlags(new Extension(),
new ApiAware()) );
$fields->
add( (new ManyToOneAssociationField('notExposedExtension', 'my_extension_id', ProductManufacturerDefinition::
class))->
addFlags(new Extension()) );
$fields->
add( (new FkField('exposed_fk', 'exposedFk', ProductManufacturerDefinition::
class))->
addFlags(new Extension(),
new ApiAware()) );
$fields->
add( (new FkField('not_exposed_fk', 'notExposedFk', ProductManufacturerDefinition::
class))->
addFlags(new Extension()) );