public function compactEditBuilder()
{
if ($this->relationships == 0 && $this->enum == 0) {
return '';
} else {
$compact = '';
if ($this->relationships > 0) {
foreach ($this->fields as $field) {
if ($field->type == 'relationship') {
$compact .= ', "' . $field->relationship_name . '"';
}
}
}
if ($this->enum > 0) {
foreach ($this->fields as $field) {
if ($field->type == 'enum') {
$compact .= ', "' . $field->title . '"';
}
}
}
return $compact;
}
}