[coldbox-3.8.1] populate() + auto composing one-to-many relationships

is there a way to have populate() create one-to-many relationships for an entity?

i know many-to-one works by passing in an array of entities or a list of ID’s.

Hi Aaron–

many-to-one should work by passing a simple value, since the target to be populated is a single entity (e.g., many works of art can be created by one artist). With one-to-many, you should be able to pass an array or list of identifiers.

In both cases, make sure that the composeRelationships argument passed to populate() is true.

Please report back if you have problems.

Thanks!