- Some overdue modification made to allow more flexibility

This commit is contained in:
mcndave committed 2023-10-27 17:53:55 +00:00
1 parent cc741566fb
commit 1927b43999
14 files changed
+88 -51

No files matched your search

+4 -1
View File
@@ -187,7 +187,7 @@ class RelationBuilder
return $relation->bridgeField ?? false ? $relation->bridge::entityCollection() : $relationRelation->entity::entityCollection();
}
return new $class();
throw new \InvalidArgumentException("Unknown or no relation was provided as relation type.");
}
protected function fetchFromDataset($name, ? array $data = null) : object|bool
@@ -227,6 +227,9 @@ class RelationBuilder
elseif ( substr($key, 0, $len ) === sprintf(static::JOIN_FIELD_SEPARATOR, strtolower($name)) ) {
$vars[substr($key, $len)] = $value;
}
else {
# load here for API objects !
}
}
if ($vars) {