We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5a5d9 commit b660fc2Copy full SHA for b660fc2
src/Ubiquity/orm/creator/Model.php
@@ -189,9 +189,9 @@ private function getAnnotation($content) {
189
public function getToString() {
190
$field = $this->getToStringField();
191
if (isset($field)) {
192
- $corps = '$this->' . $field;
+ $corps = '($this->' . $field . "??'no value').''";
193
} elseif (($pkName = $this->getPkName()) !== null) {
194
- $corps = '$this->' . $pkName . "??'no value'";
+ $corps = '$this->' . $pkName . ".''";
195
} else {
196
$corps = '"' . $this->name . '@"' . '.\spl_object_hash($this)';
197
}
0 commit comments