Fix bug with adding single relation
@ -85,7 +85,7 @@ class SaveRelationsBehavior extends Behavior
if ($relation->multiple === true) {
$newRelations = [];
if (!is_array($value)) {
$value = [];
$value = [$value];
}
foreach ($value as $entry) {
if ($entry instanceof $relation->modelClass) {