Line 1096 in /home/blet/public_html/vendor/silverstripe/framework/src/ORM/DataObjectSchema.php
1087 // In case of an indeterminate remote field show an error 1088 if (empty($remoteField)) { 1089 $polymorphic = false; 1090 $message = "No has_one found on class '$remoteClass'"; 1091 if ($type == 'has_many') { 1092 // include a hint for has_many that is missing a has_one 1093 $message .= ", the has_many relation from '$class' to '$remoteClass'"; 1094 $message .= " requires a has_one on '$remoteClass'"; 1095 } 1096 throw new Exception($message); 1097 } 1098 1099 // If given an explicit field name ensure the related class specifies this 1100 if (empty($remoteRelations[$remoteField])) { 1101 throw new Exception("Missing expected has_one named '$remoteField' 1102 on class '$remoteClass' referenced by $type named '$component'