|
@@ -1,5 +1,3 @@ |
|
|
from typing import Self |
|
|
|
|
|
|
|
|
|
|
|
import eloquent |
|
|
import eloquent |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -25,7 +23,7 @@ class Model (eloquent.Model): |
|
|
def with_ ( |
|
|
def with_ ( |
|
|
cls, |
|
|
cls, |
|
|
*relations: str, |
|
|
*relations: str, |
|
|
) -> eloquent.QueryBuilder[Self]: |
|
|
|
|
|
|
|
|
) -> eloquent.QueryBuilder: |
|
|
q = cls.query () |
|
|
q = cls.query () |
|
|
for relation in relations: |
|
|
for relation in relations: |
|
|
q = q._load_relation (relation) |
|
|
q = q._load_relation (relation) |
|
|