def makeAndSetIterableField[V, T <: Iterable[V], F <: ScalarFormField[T]](attrRef: AttributeRef[T], field: F): AttributesFormField[T]that I want to use via:
makeAndSetIterableField(attrRef.cast(t) /* Set[Int] */, text[Int](key, name, includeUseValueCheckbox = true))without being explicit with type parameters
makeAndSetIterableField[Int, Set[Int], ...](attrRef.cast(t) /* Set[Int] */, text[Int](key, name, includeUseValueCheckbox = true))... I could change the signature to something like:
def makeAndSetIterableField[V, T <: Iterable[V], F <: ScalarFormField[T]](attrRef: AttributeRef[_ <: Iterable[V]], field: F): AttributesFormField[T]but then I lose the type
attrRef. What am I missing? (and ignore the cast red flag :)
(implicit tag: TypeTag[V])would help? I guess I could try lol
T <: Iterable. And again
F. Is it important that it is more specific than
ScalarFormField? If not, scrap it, and just write
copymethod available so you could change it to be a user who does not actually exist. So then it's a matter of discipline on whether or not your data is correct anyway.
casekeyword, so isn't it guaranteed you will have a larger memory footprint for the case class? What I'm not sure about, is if this actually translates to each instance of the class having a large footprint or not.
Error:(63, 15) No Json serializer as JsObject found for type co.firstfoundry.lagom.scaladsl.api.mongo.OffsetDocument. Try to implement an implicit OWrites or OFormat for this type. .one(offsetDocument)) Error:(63, 15) not enough arguments for method one: (implicit ec: scala.concurrent.ExecutionContext, implicit writer: play.api.libs.json.OWrites[co.firstfoundry.lagom.scaladsl.api.mongo.OffsetDocument])scala.concurrent.Future[reactivemongo.api.commands.WriteResult]. Unspecified value parameter writer. .one(offsetDocument))