1. No as far as i know
2. I use Proplists as I haven't figured out how to define "Nested" object 
and there is nothing about this in Ref or Man.

On Wednesday, May 14, 2014 8:05:23 PM UTC+4, [email protected] wrote:
>
> I'm still trying to figure out how to use CB. I really like it so far but 
> i'm not sure how to do a few things.
>
>
>    1. When you define a new model and it's attributes. ( -module(foo, 
>    [Id, SomeString::string(), ...]) ) is there a way to indicate if 
>    the attribute is optional? Right now if i don't use an attribute and save 
>    the record to the database. I'll get a null in the field. I would prefer 
> if 
>    it just wasn't available.
>    2. How do you deal with nested objects? how do you define a nested 
>    record and how would you get those nested values into your templates? So 
>    far all i've found was this:
>    get(Path::string()) -> Value
>    
>    Returns a deeply nested value described by a dot-separated Path (e.g. "
>    puppy.mother.name")
>    
>
> Thanks for any help!
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/2d96d5ad-16e2-4ee4-ae86-04349e7da99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to