case $field instanceof ManyToManyAssociationField:
$uses[] =
$this->
getUsage($field->
getToManyReferenceDefinition()->
getCollectionClass());
$type =
$this->
getClassTypeHint($field->
getToManyReferenceDefinition()->
getCollectionClass());
break;
case $field instanceof ReferenceVersionField:
case $field instanceof VersionField:
return null;
case $field instanceof TranslatedField:
return $this->
generateProperty( $definition,
EntityDefinitionQueryHelper::
getTranslatedField($definition,
$field) );
case $field instanceof CartPriceField:
$type = 'CartPrice';
$uses[] = 'use ' . CartPrice::
class;
break;
case $field instanceof CalculatedPriceField:
$type = 'CalculatedPrice';
$uses[] = 'use ' . CalculatedPrice::
class;
break;