|
|
@@ -18,13 +18,3 @@ class Model (eloquent.Model): |
|
|
|
self.id = row.id |
|
|
|
self._Model__exists = True # pylint: disable = protected-access |
|
|
|
self.save () |
|
|
|
|
|
|
|
@classmethod |
|
|
|
def with_ ( |
|
|
|
cls, |
|
|
|
*relations: str, |
|
|
|
) -> eloquent.QueryBuilder: |
|
|
|
q = cls.query () |
|
|
|
for relation in relations: |
|
|
|
q = q._load_relation (relation) |
|
|
|
return q |