modify mysql result

This commit is contained in:
2022-04-28 03:24:58 +08:00
parent 2ace780fcb
commit 63d58218e4
+2 -2
View File
@@ -37,10 +37,10 @@ class HasMany extends HasBase
} }
/** /**
* @return array|null|ModelInterface * @return array|null|Collection
* @throws Exception * @throws Exception
*/ */
public function get(): array|ModelInterface|null public function get(): array|Collection|null
{ {
return $this->_relation->get($this->model::className(), $this->value); return $this->_relation->get($this->model::className(), $this->value);
} }