balderdashy/sails — pull request #324 by particlebanana (2013-04-13 23:02:38+00:00)
Title: Model.findOrCreate() Bug 

This fixes an issue I came across where .findOrCreate on a collection doesn't add in timestamp values or default values when creating a record.

The timestamps and defaults are set in the `collection.create()` method but the aggregate and compound methods don't use the collection create method and instead just pass it off to the adapter's create method.

I changed it so that they both use the collection's create method and get the values set. I wrote a test suite for the compoundQueries to ensure it's all good.