- Completed merge

This commit is contained in:
mcndave committed 2022-07-15 19:59:38 +00:00
1 parent 430cd03bc4
commit 00ebf3381f
10 files changed
+93 -34

No files matched your search

+7 -2
View File
@@ -47,8 +47,13 @@ class RelationBuilder
return $this->resolveRelation($name) ?: $this->resolveVirtual($name);
}
elseif ( $relation = $this->resolver->searchFieldAnnotation($name, new Relation() ) ) {
return $this->instanciateEmptyObject($name, $relation);
else {
if ( $relation = $this->resolver->searchFieldAnnotation($name, new Relation() ) ) {
return $this->instanciateEmptyObject($name, $relation);
}
elseif ($virtual = $this->resolveVirtual($name)) {
return $virtual;
}
}
return false;