Ignore '.idea' directory (JetBrains IDEs).
In model's 'updateAttributes', save data returned by model's 'toObject()' to make sure setters have been applied (e.g. foreign keys are transformed to ObjectId for mongo).
Case to allow for objects as datatypes because you can't call a constructor as a function.

Required for support of Enum in MySQL adapter because each Enum is its own Enum object instead of there being a universal Enum function.

Implemented in most simple way possible.
Merge pull request #293 from hbj/updateAttributes_and_foreign_keys

Model's 'updateAttributes()' does not apply setters
Merge pull request #296 from dgsan/master

Case to allow for objects as datatypes because you can't call a constructor as a function.
The callback was called twice on error
Merge pull request #299 from gierschv/master

[SQL] A callback was called twice on error