Emil Kantis
05/02/2021, 5:33 PM<http://dao.Companies.org|dao.Companies.org>_id is not in record set
.
All tables are created in the same transaction as the test then everything is rolled back.
I've tried using both H2 and SQLite, getting same error with both.. Not sure where to start looking. Most search hits seems to be related to renaming the id column, but this is a FK to another entityMarcus Ilgner
05/02/2021, 6:20 PMEmil Kantis
05/02/2021, 8:10 PMOrganisation
with a 1-* relationship with OrganisationFeature
that I'm querying as such:
fun isEnabled(organisation: Organisation) =
organisation.features.any { it.feature == this }
The above call triggers the exception mentioning Company
which is only involved at the call site, like this:
when (TEAM_LEAD_AS_PROJECT_MANAGER.isEnabled(project.company.organisation)) {
true -> activeManagers(project)
false -> emptyList()
}
class OrganisationFeature(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<OrganisationFeature>(OrganisationFeatures)
var organisation by Organisation referencedOn Companies.organisationId
var feature by OrganisationFeatures.feature
}