Skip to content

Instantly share code, notes, and snippets.

@rozd
Created March 11, 2011 11:42
Show Gist options
  • Save rozd/865783 to your computer and use it in GitHub Desktop.
Save rozd/865783 to your computer and use it in GitHub Desktop.
public class Order
{
[ChoiceType("Book")]
public var books:Array;
}
public class Book
{
[Required]
public var isbn:String;
[Required]
public var title:String;
[Required]
public var author:String;
public var comment:String;
[TextNode]
public var description:String;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment