Skip to content

Commit

Permalink
Releasing 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed Mar 7, 2021
2 parents 4408d6b + 0521e13 commit 36ca463
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/TgDatabase/DAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ public function findSingle($criteria = array(), $order = array()) {
return NULL;
}

/**
* Creates a new instance of the model class.
* @return instance
*/
public function newInstance() {
$name = $this->modelClass;
return new $name();
}

/**
* Create the given object in the database.
* @param object $object - object to be created
Expand Down

0 comments on commit 36ca463

Please sign in to comment.