- Fixed a recurrent bug within deleteOne() method
This commit is contained in:
1 parent
fa4e686f35
commit
15be1597b8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -114,7 +114,7 @@ class Repository
|
||||
throw new Exception\EntityPrimaryKeyUnknown("A primary key value has to be defined to delete an item.");
|
||||
}
|
||||
|
||||
return (bool) $this->wherePrimaryKey($value, null)->deleteOne()->rowCount;
|
||||
return (bool) $this->wherePrimaryKey($value, false)->deleteOne()->rowCount;
|
||||
}
|
||||
|
||||
public function destroy(object $entity) : bool
|
||||
|
||||
Reference in new issue
Block a user