protected function convertRelationType($stringType)
{
switch (strtoupper($stringType)) {
case 'COMMON':
return Values\Content\Relation::COMMON;
case 'EMBED':
return Values\Content\Relation::EMBED;
case 'LINK':
return Values\Content\Relation::LINK;
case 'FIELD':
return Values\Content\Relation::FIELD;
}
throw new \RuntimeException(sprintf('Unknown Relation type: "%s"', $stringType));
}