|
|
@ -87,7 +87,9 @@ class EntityModel |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def self.delete(filter="", *args) |
|
|
|
def self.delete(filter="", *args) |
|
|
|
self.query "DELETE FROM #{self.name} #{self.apply_filter(filter)}", *args |
|
|
|
q = "DELETE FROM #{self.name}" |
|
|
|
|
|
|
|
q = self.apply_filter(q, filter) |
|
|
|
|
|
|
|
self.query q, *args |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def self.set(attr, data, filter="") # slower but more lazy |
|
|
|
def self.set(attr, data, filter="") # slower but more lazy |
|
|
|