Skip to content
Browse files

Merge branch 'master' of github.com:dontcare4free/nina

  • Loading branch information...
2 parents 2bd7a2b + 2b07017 commit c5789a699b8e737cb72d687c84e617f27494e9fc @teozkr committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.markdown
View
2 README.markdown
@@ -87,7 +87,7 @@ for (id & optional <- MyTable get (MyTable.id & MyTable.optional) all()) {
Or if you, say, wanted to retrieve the optional for a given id:
```scala
-def getOptionalFromId(id: Int): Option[String] = {
+def getOptionalFromId(id: Int): Option[Int] = {
MyTable where (MyTable.id === id) get MyTable.optional single() getOrElse None // single() returns a None if no row matched.
}
```

0 comments on commit c5789a6

Please sign in to comment.
Something went wrong with that request. Please try again.