eee
This commit is contained in:
+1
-1
@@ -766,7 +766,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
|||||||
*/
|
*/
|
||||||
protected function withRelate(string $name): mixed
|
protected function withRelate(string $name): mixed
|
||||||
{
|
{
|
||||||
$response = $this->$name();
|
$response = $this->{'get' . ucfirst($name)}();
|
||||||
if ($response instanceof \Database\Traits\Relation) {
|
if ($response instanceof \Database\Traits\Relation) {
|
||||||
$response = $response->get();
|
$response = $response->get();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user