--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to the Google Groups "CompoundJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Yep, I just realized that. Readme.md of JugglingDB is wrong though (see https://github.com/1602/jugglingdb/#object-lifecycle), that's what I was working off of - that will teach me to only trust the code :). I'll send a PR to update the Readme.
--
Good point, I didn't consider that. Do you normally cherry pick each attribute you want to update in controller code then call .save() each time inside Controller.update()?
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to the Google Groups "CompoundJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Yes, I do somthing like:user.password = body.password
user.save(err, callback)Actually exists one more issue related with "virtual" attrs - we cannot define validation for such attrs in a model(just in a controller)
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to the Google Groups "CompoundJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
8 О©╫О©╫О©╫О©╫О©╫О©╫ 2013 О©╫. 17:59schema file tellsО©╫which fields should be stored in db and which doesn't.--
О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫,О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫
--
The official community of CompoundJS.
О©╫
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫
8 О©╫О©╫О©╫О©╫О©╫О©╫ 2013 О©╫. 17:58
One more reason to move "virtuality" few layers above or in a new abstract layer who tells which fields should be stored in db and which doesn't.
On Monday, April 8, 2013 5:53:11 PM UTC+4, Andrew Krasnoff wrote: --
The official community of CompoundJS.
О©╫
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫
8 О©╫О©╫О©╫О©╫О©╫О©╫ 2013 О©╫. 17:53
Yes, I do somthing like:
О©╫ О©╫О©╫О©╫ О©╫ user.password = body.password
О©╫ О©╫ user.save(err, callback)
Actually exists one more issue related with "virtual" attrs - we cannot define validation for such attrs in a model(just in a controller)
--
О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫,О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫
--
The official community of CompoundJS.
О©╫
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫
8 О©╫О©╫О©╫О©╫О©╫О©╫ 2013 О©╫. 17:36Good point, I didn't consider that. О©╫Do you normally cherry pick each attribute you want to update in controller code then call .save() each time inside Controller.update()? --
The official community of CompoundJS.
О©╫
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫
8 О©╫О©╫О©╫О©╫О©╫О©╫ 2013 О©╫. 17:29
I prefer do not use "updateAttributes" because there are no any mass-asignment protection in CompoundJS. So, I use "model.save()" instead
--
О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫,О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫
--
The official community of CompoundJS.
О©╫
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫
Actually, schema file don't know anything about virtual fields at the moment. So it can't tell us about which fields should not be stored. ;-)
But if schema files will have some additional functionality to determine data source for each field — it can take some decisions about which fields should be left untouched and that technique will get us a lot of possibilities described here.
8 апреля 2013 г. 17:59schema file tells which fields should be stored in db and which doesn't.
--
С уважением,Андрей Краснов
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
8 апреля 2013 г. 17:58
One more reason to move "virtuality" few layers above or in a new abstract layer who tells which fields should be stored in db and which doesn't.On Monday, April 8, 2013 5:53:11 PM UTC+4, Andrew Krasnoff wrote: --
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
8 апреля 2013 г. 17:53
Yes, I do somthing like:
user.password = body.password
user.save(err, callback)
Actually exists one more issue related with "virtual" attrs - we cannot define validation for such attrs in a model(just in a controller)
--
С уважением,Андрей Краснов
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
8 апреля 2013 г. 17:36Good point, I didn't consider that. Do you normally cherry pick each attribute you want to update in controller code then call .save() each time inside Controller.update()? --
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
8 апреля 2013 г. 17:29
I prefer do not use "updateAttributes" because there are no any mass-asignment protection in CompoundJS. So, I use "model.save()" instead
--
С уважением,Андрей Краснов
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to a topic in the Google Groups "CompoundJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compoundjs/aI3YplkREI0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to the Google Groups "CompoundJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
The official community of CompoundJS.
website: compoundjs.com
source: https://github.com/1602/compound
bug reports: https://github.com/1602/compound/issues?state=open
---
You received this message because you are subscribed to the Google Groups "CompoundJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compoundjs+...@googlegroups.com.
To post to this group, send email to compo...@googlegroups.com.
Visit this group at http://groups.google.com/group/compoundjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.