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