goupviet / joose-js

Automatically exported from code.google.com/p/joose-js
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Delayed Execution not available on methods other than select #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The asynchronous code in the following block 
this.save(function(obj) {
  obj.anotherCall()
};

What is the expected output? What do you see instead?
this.save().anotherCall()

What version of the product are you using? On what operating system?
ORM_async 2.0

Please provide any additional information below.
Save, destroy, selectAll, newFromId too deserve to be usable with delayed 
execution

Original issue reported on code.google.com by nrmeht...@gmail.com on 17 Mar 2009 at 8:10

GoogleCodeExporter commented 9 years ago
Since this was only intended as a proof-of-concept we cannot guarantee timely 
further
development. Would you be interested in finishing up the implementation?

Original comment by malte.ubl on 17 Mar 2009 at 9:20

GoogleCodeExporter commented 9 years ago
I will try to help. This is not high priority for me right now, so let me get 
all the issues recorded first for the 
benefit of those who may try to use joose ORM.

Original comment by nrmeht...@gmail.com on 23 Mar 2009 at 4:35

GoogleCodeExporter commented 9 years ago
One suggestion for the HasOne class. 

When producing getters, it is better to use DelayedExecution because it is 
always possible to obtain the raw 
value of the attribute using the 'dot' property notation. For example with cars 
and persons, here's how to use 
delayed execution:
car.getOwner().updateAndSave()

On the other hand, simple evaluations can be performed as this:
person.mother != null

Original comment by nrmeht...@gmail.com on 24 Mar 2009 at 12:09