Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created August 24, 2011 03:04
Show Gist options
  • Save fmpwizard/1167215 to your computer and use it in GitHub Desktop.
Save fmpwizard/1167215 to your computer and use it in GitHub Desktop.
subcategoryObj.is.category_id.set(
(subcategorySelect.selectedItem.now map {
x: Categories => x.id.is.toLong
}).getOrElse(0L)
)
and now I have:
subcategoryObj.is.category_id.set( ~(subcategorySelect.selectedItem.now map {x: Categories => x.id.is}) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment