Skip to content

Commit

Permalink
Test in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Dec 4, 2022
1 parent 8ae2544 commit 6618706
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/LeanOrm/Model/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(
*/
public function deleteAll() {

$this->_preDeleteAll();
$this->preDeleteAll();

$result = true;

Expand Down Expand Up @@ -91,7 +91,7 @@ public function deleteAll() {
}
}

$this->_postDeleteAll();
$this->postDeleteAll();

return $result;
}
Expand Down Expand Up @@ -221,7 +221,7 @@ public function removeAll(): self {
*/
public function saveAll($group_inserts_together=false) {

$this->_preSaveAll($group_inserts_together);
$this->preSaveAll($group_inserts_together);

$result = true;
$keys_4_unsuccessfully_saved_records = [];
Expand Down Expand Up @@ -285,7 +285,7 @@ public function saveAll($group_inserts_together=false) {
$result = $keys_4_unsuccessfully_saved_records;
}

$this->_postSaveAll($result, $group_inserts_together);
$this->postSaveAll($result, $group_inserts_together);

return $result;
}
Expand Down Expand Up @@ -500,20 +500,20 @@ public function __unset($key): void {
/**
* {@inheritDoc}
*/
public function _preDeleteAll(): void { }
public function preDeleteAll(): void { }

/**
* {@inheritDoc}
*/
public function _postDeleteAll(): void { }
public function postDeleteAll(): void { }

/**
* {@inheritDoc}
*/
public function _preSaveAll(bool $group_inserts_together=false): void { }
public function preSaveAll(bool $group_inserts_together=false): void { }

/**
* {@inheritDoc}
*/
public function _postSaveAll($save_all_result, bool $group_inserts_together=false): void { }
public function postSaveAll($save_all_result, bool $group_inserts_together=false): void { }
}

0 comments on commit 6618706

Please sign in to comment.