Use chunkList() instead.
Splits the list into multiple lists by chunk size. Can be used to
split the sql IN clauses since some databases have a limitation
on 'IN' clause entries and size
Use populateHasMany() instead.
Merges the corresponding list of child objects to the 'hasMany'
property of the parent
Example use case could be:
1) Query to get a list of employees
2) Use an IN/ANY clause query to get all the skills for those employees
3) Use mergeResultsToPopulateHasMany() to merge the 2 result sets to populate the employee.skills property
Use populateHasOne() instead.
Merges the corresponding child object to the 'hasOne' property of
the parent.
Example use case:
1) Query for a list of users
2) Use an IN/ANY clause query to get the profiles for the users
3) Use method mergeResultsToPopulateHasOne() to merge the 2 result sets to populate the user.profile property