I was having a test fail, so I needed to add notNull constraint to image.user association. Also having include: [{all: true}] can lead to performance issues if there are many associations, so it now just does a simple check of the config settings. Ideally it should mimic the behaviour of sails' ActionUtil.populateEach', but this is a start.
I was having a test fail, so I needed to add notNull constraint to image.user association. Also having include: [{all: true}] can lead to performance issues if there are many associations, so it now just does a simple check of the config settings. Ideally it should mimic the behaviour of sails' ActionUtil.populateEach', but this is a start.