init method
Implementation
SqfEntityFieldRelationshipBase init() {
if (table != null) {
relationshipName = table!.modelName!;
dbType = table!.primaryKeyType == PrimaryKeyType.text
? DbType.text
: DbType.integer;
table!.relationType =
relationType == RelationType.ONE_TO_MANY ? relationType : null;
fieldName = fieldName ??
table!.tableName! + toCamelCase(table!.primaryKeyNames[0]);
} else {
//print('SqfEntityFieldRelationshipBase constructor: table = null: fieldName=$fieldName');
}
return this;
}