qb-project/qbproject — pull request #17 by ephe-meral (2014-08-01 12:13:18+00:00)
Title: Fixes #12

Note that

```scala
class QBMockupCollection(val schema: QBClass) extends QBMongoCollection(null)(null) { ??? }
val mock = new QBMockupCollection(sampleSchema) with QBCollectionValidation
```

is different to

```scala
val mock = new QBMockupCollection with QBCollectionValidation {
val schema = sampleSchema
}
```

in terms of initialization order.
Meaning ```transform``` of the ```QBCollectionValidation``` trait get initialized after or before the schema, but depends on the schema. Making it lazy resolves the issue though.