Hi,
I have a question on extending MongoMetaRecord or more specifically, an error I get while doing so and I can not figure out what's the problem.
I try to create a trait:
trait StructuredDbObject[BaseRecord <: MongoRecord[BaseRecord]]
extends MongoMetaRecord[BaseRecord]
This gives me the compiler error:
illegal inheritance; self-type StructuredDbObject[BaseRecord] does not conform to net.liftweb.mongodb.record.MongoMetaRecord[BaseRecord]'s selftype net.liftweb.mongodb.record.MongoMetaRecord[BaseRecord] with BaseRecord
Looking at the MongoMetaRecord definition it has the same type definition as above:
trait MongoMetaRecord[BaseRecord <: MongoRecord[BaseRecord]]
Can you point me to the mistake I'm making, please?
Thanks,
Torsten.