summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2012-11-29 14:40:14 +0000
committerSimon Holywell <[email protected]>2012-11-29 14:40:14 +0000
commit8083d63741f91a285cf433de0fe6b36a9140d91c (patch)
treecd60ef51fba035d8169616d2bffd8e1a7d09259b /README.markdown
parent68bd72bb63c006e71e8d2f592ee536ff591297c1 (diff)
Closes issue #85 Implement is_new() in Idiorm
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 8aa1c7d..6a5af9e 100644
--- a/README.markdown
+++ b/README.markdown
@@ -27,8 +27,9 @@ Changelog
#### 1.3.0 - release XXXX-XX-XX
-* Add in raw_execute - closes issue 40 [[tag](https://github.com/tag)]
+* Add in raw_execute - closes issue #40 [[tag](https://github.com/tag)]
* Add query logging to `delete_many` [[tag](https://github.com/tag)]
+* Add `is_new` method - closes issue #85
#### 1.2.1 - release 2012-11-15
@@ -484,6 +485,8 @@ To add a new record, you need to first create an "empty" object instance. You th
After the object has been saved, you can call its `id()` method to find the autogenerated primary key value that the database assigned to it.
+To determine if the instance you are operating on has been obtained by calling `create()` or whether it was via query on the database you can call `is_new()` on it to get a boolean response.
+
#### Properties containing expressions ####
It is possible to set properties on the model that contain database expressions using the `set_expr` method.