Hi
I cant get leftOuter to work for my Record with Squeryl.
I can get regular join to work no problem, even using "join()" instead of "from()".
here is my code:
def getAccessKeyAndStudentsOn() =
join(KKSchema.accessKeys, KKSchema.students.leftOuter) ((ak, s) =>
select(ak, s)
on(ak.authKey === s.map(_.authKey)))
when I do this the compile gives:
[error] D:\scala\lift\src\main\scala\code\snippet\HelloWorld.scala:55: type mismatch;
[error] found : Option[net.liftweb.record.field.StringField[code.model.Student]]
[error] required: org.squeryl.dsl.NonNumericalExpression[String]
[error] on(ak.authKey === s.map(_.authKey)))
[error] ^
if i try:
[error] D:\scala\lift\src\main\scala\code\snippet\HelloWorld.scala:55: type mismatch;
[error] found : Option[java.lang.String]
[error] required: org.squeryl.dsl.NonNumericalExpression[String]
[error] on(ak.authKey === s.map(_.authKey.is)))
[error] ^
both points the .map part
I think this might be because an implicit function is not applied implicitly, but not sure.
Am I missing something?
Thanks