Browse Source

もろもろ修正

main
みてるぞ 4 weeks ago
parent
commit
db14af1a73
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      my_eloquent.py

+ 0
- 10
my_eloquent.py View File

@@ -18,13 +18,3 @@ class Model (eloquent.Model):
self.id = row.id self.id = row.id
self._Model__exists = True # pylint: disable = protected-access self._Model__exists = True # pylint: disable = protected-access
self.save () self.save ()

@classmethod
def with_ (
cls,
*relations: str,
) -> eloquent.QueryBuilder:
q = cls.query ()
for relation in relations:
q = q._load_relation (relation)
return q

Loading…
Cancel
Save