变更
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ abstract class HasBase implements \Database\Traits\Relation
|
|||||||
public function __call($name, $arguments)
|
public function __call($name, $arguments)
|
||||||
{
|
{
|
||||||
if (!method_exists($this, $name)) {
|
if (!method_exists($this, $name)) {
|
||||||
$key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value;
|
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
|
||||||
var_dump($this->model, $this->primaryId, $this->value);
|
var_dump($this->model, $this->primaryId, $this->value);
|
||||||
$this->_relation->getQuery(md5($key))->$name(...$arguments);
|
$this->_relation->getQuery(md5($key))->$name(...$arguments);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user