Closed everdance closed 9 years ago
Not sure I'm getting the idea behind this PR.
Hi Bredikhin, this merge request just want to correct the demo code on your README populate method example on autoAssociation flag
As a better improvement, I would suggest that you change the fingerprint of populate method, so that when first parameter is an array, this is required association scenario call, and we should disable autoAssociation implicitly so user don't need to pass this flag.
Actually, the idea of this example is that you can use automatic association feature once the required models are populated, so, sorry, a little miss on this one.
When required associations exist, need pass false explicitly to disable auto association. Could you consider make a change so that auto association is disabled by default when first parameter for populate method is an array.