import <%= base_package %>.models.domain.<%= model.camelcase %>;
<% end -%>
import <%= base_package %>.models.presentation.<%= class_name.pluralize %>Model;
import <%= base_package %>.models.domain.<%= class_name %>;
<% for attribute in attributes -%>
<% if attribute.model_type -%>
import <%= base_package %>.models.<%= attribute.flex_name.capitalize_without_downcasing %>;
<% end -%>
<% end -%>
// import <%= base_package %>.views.component.<%= class_name.dcfirst %>.<%= class_name.pluralize %>EditPresenter;
/** This is the presentation model object for this view, it is injected by the application controller when view is created. */
[Bindable] // This must be instantiated here. If you do = new <%= class_name.pluralize %>Model() in creationComplete, the dispatcher will be null!
public var model:<%= class_name.pluralize %>Model = new <%= class_name.pluralize %>Model();
// [Bindable]
// public var presenter:<%= class_name.pluralize %>EditPresenter;
private function creationComplete(event:Event):void
{
// presenter = new <%= class_name.pluralize %>EditPresenter(this);
}
]]>
<% for attribute in attributes -%><% unless attribute.name == "with_user" %>
<% if attribute.type == :boolean -%>
<% elsif attribute.type == :string -%>
<% elsif attribute.type == :text -%>
<% elsif attribute.type == :datetime || attribute.type == :time -%>
<% elsif attribute.type == :date -%>
<% else -%>
<% end -%>
<% end -%>
<% end -%>
<% for model in belongs_tos -%>
<% end -%>