|
@@ 81-85 (lines=5) @@
|
| 78 |
|
{ |
| 79 |
|
$this->initialize(); |
| 80 |
|
|
| 81 |
|
if ( !$this->cm->hasField($field) |
| 82 |
|
&& array_key_exists($field, $this->cm->midgard['field_aliases'])) { |
| 83 |
|
$field = $this->cm->midgard['field_aliases'][$field]; |
| 84 |
|
} |
| 85 |
|
if ($this->cm->isSingleValuedAssociation($field)) { |
| 86 |
|
// mgd api only allows setting links identifiers, doctrine wants objects, |
| 87 |
|
// so it seems we need an expensive and pretty useless conversion.. |
| 88 |
|
if (empty($value)) { |
|
@@ 127-131 (lines=5) @@
|
| 124 |
|
{ |
| 125 |
|
$this->initialize(); |
| 126 |
|
|
| 127 |
|
if ( !$this->cm->hasField($field) |
| 128 |
|
&& array_key_exists($field, $this->cm->midgard['field_aliases'])) { |
| 129 |
|
$field = $this->cm->midgard['field_aliases'][$field]; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
if ($this->cm->isSingleValuedAssociation($field)) { |
| 133 |
|
// mgd api only allows returning link identifiers, doctrine has objects, |
| 134 |
|
// so it seems we need a pretty useless conversion.. |