Skip to content

Commit 36ca463

Browse files
committed
Releasing 1.1.4
2 parents 4408d6b + 0521e13 commit 36ca463

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/TgDatabase/DAO.php

+9
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ public function findSingle($criteria = array(), $order = array()) {
149149
return NULL;
150150
}
151151

152+
/**
153+
* Creates a new instance of the model class.
154+
* @return instance
155+
*/
156+
public function newInstance() {
157+
$name = $this->modelClass;
158+
return new $name();
159+
}
160+
152161
/**
153162
* Create the given object in the database.
154163
* @param object $object - object to be created

0 commit comments

Comments
 (0)