Describe the bug
Wheels v4. Using a hasMany shortcut with the name of an existing model, an "association not found" exception occurs.
To Reproduce
// models/Product.cfc
hasMany(name = "ProductCategories", shortcut = "Category");
// models/ProductCategory.cfc
belongsTo(name = "Product");
belongsTo(name = "Category");
// models/Category.cfc
hasMany(name = "ProductCategories");
// throws "association not found" exception
model("Product").findAll(include = "Category");
Expected behavior
The model findAll call should join to Category model through the ProductCategories "bridge" table/model.
Additional context
Apologies for pseudo-code.. I had to change branches for work and wanted to log the issue before I forgot the specifics.
Describe the bug
Wheels v4. Using a
hasManyshortcut with the name of an existing model, an "association not found" exception occurs.To Reproduce
Expected behavior
The model findAll call should join to Category model through the ProductCategories "bridge" table/model.
Additional context
Apologies for pseudo-code.. I had to change branches for work and wanted to log the issue before I forgot the specifics.