Skip to content

Commit

Permalink
Added todo for v1.x
Browse files Browse the repository at this point in the history
Commented out the concept methods for v1.x
  • Loading branch information
FarhanShares authored Jun 13, 2020
1 parent 51a6681 commit 8a4e5c5
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,27 @@ public function findDeleted ($columns = '*'): Selection
return $eventData['data'];
}


/**
* Find the result or through exception (Or can we redirect to 404 page?)
* @todo: fix & update on: v1.x
*/
/*
public function findOrFail()
{
}


*/

/**
* Find the result or null (Or can we show an empty/no result page?)
* @todo: fix & update on: v1.x
*/
/*
public function findOrEmpty()
{
}

*/

//--------------------------------------------------------------------
// ADVANCED FINDERS
Expand Down Expand Up @@ -222,17 +231,13 @@ public function findBy($where)
*
* @return boolean
* @throws ModelException
* @todo: fix & update
* @todo: fix & update on: v1.x
*/
public function save($data): bool
{
if (empty($data)) {
return true;
}


/*
public function save($data): bool
{
}

*/

/**
* Inserts data into the current table.
Expand Down Expand Up @@ -401,6 +406,7 @@ public function removeDeleted(): int
*
* @return array
* @throws ModelException
* @todo: not tested, probably not work
*/
protected function doProtectFields(array $data): array
{
Expand Down Expand Up @@ -478,7 +484,6 @@ protected function setDateTime(int $userData = null)
* @return mixed
* @todo: complete the simple event system
*/
//todo: fix TRIGGER
protected function trigger(string $event, array $eventData)
{
// Ensure it's a valid event
Expand Down

0 comments on commit 8a4e5c5

Please sign in to comment.