变更
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ class HasCount extends HasBase
|
|||||||
*/
|
*/
|
||||||
public function get(): array|ModelInterface|null
|
public function get(): array|ModelInterface|null
|
||||||
{
|
{
|
||||||
$key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value;
|
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
|
||||||
return $this->_relation->count($key);
|
return $this->_relation->count($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ class HasMany extends HasBase
|
|||||||
*/
|
*/
|
||||||
public function get(): array|Collection|null
|
public function get(): array|Collection|null
|
||||||
{
|
{
|
||||||
$key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value;
|
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
|
||||||
return $this->_relation->get(md5($key));
|
return $this->_relation->get(md5($key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ class HasOne extends HasBase
|
|||||||
*/
|
*/
|
||||||
public function get(): array|ModelInterface|null
|
public function get(): array|ModelInterface|null
|
||||||
{
|
{
|
||||||
$key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value;
|
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
|
||||||
return $this->_relation->first(md5($key));
|
return $this->_relation->first(md5($key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user