{"__v":19,"_id":"550974cc368a561700414760","category":{"__v":222,"_id":"550974cc368a561700414758","pages":["550974cc368a56170041475f","550974cc368a561700414760","550974cc368a561700414761","550974cc368a561700414762","550974cc368a561700414763","550974cc368a561700414764","550974cc368a561700414765","550974cc368a561700414766","550974cc368a561700414767","550974cc368a561700414768","550974cc368a561700414769","55097ec22dd6a11900e6e7cf","5509c8864c7c3f2300aabffb","5509d0ff8f44a925000371a6","550b22750532d919002da969","550c27865fdefb19003d11df","550c27b8351eeb19006b16c8","550c27e622ccb01700a794a7","550c28050a10bd2f005a5284","550c28235fdefb19003d11e1","55114d1e88e84619004bd50b","55114e3b0c1a08190077f6d5","55114eec9171e82b0089717e","55114f3488e84619004bd50f","55114f43e2990b0d00fb04f9","55114f540c1a08190077f6e0","55114f5d0c1a08190077f6e2","55114f6d9171e82b00897180","55114f7be2990b0d00fb04fc","55114f860c1a08190077f6e4","55114f9088e84619004bd511","55114f9f0c1a08190077f6e6","55114fa988e84619004bd513","55114fb4e2990b0d00fb04fe","55114fbf9171e82b00897182","55114fc80c1a08190077f6e8","55114fd2a226890d00911678","5513e8e6f382620d0082e1ac","5513e9e5f382620d0082e1af","5513eba4a4f3ed2d00923a04","5513ec931949d32d006afbec","5513ede5b5e3e33900767d22","5513edf2d04af219007ddcd7","5513edfed04af219007ddcd9","5513ee0c1949d32d006afbf1","5513ee1c1949d32d006afbf3","5513ee2a1949d32d006afbf5","5513ee3af382620d0082e1b9","5513ee47d04af219007ddcdb","5513f1eaa4f3ed2d00923a0e","5513f284b5e3e33900767d28","5513f29ad04af219007ddce1","55153ec8c859ac2f0001b475","55153f05c859ac2f0001b477","55153f41f854a31900368728","55154429c859ac2f0001b47e","551802fcb625a50d001260d4","551803fc82f73b0d004026c7","551804b682f73b0d004026c9","551804f5f732e32100056f18","551805a2b625a50d001260d7","5518061ef732e32100056f1c","5518084382f73b0d004026cb","551809d807dedf0d00a3f5de","55180a3c82f73b0d004026cf","55180a8715f7bd170082e4e9","55180ab9b625a50d001260da","55180bb182f73b0d004026d3","551820b15df7762100beed0d","5518210f5ce7e023007cacfe","551821740507611900ee3411","551821bc5ce7e023007cad00","551821eee303421900e3c818","551822255df7762100beed10","551913f62f1af40d00cff52e","551914c245b0d80d0015220a","55191510337285170047f837","55191577822f9c23006e9545","551916323414b40d00e46ff9","551916be822f9c23006e954b","551918033414b40d00e46ffd","5519185b822f9c23006e954f","5519193f45b0d80d00152243","551919c2337285170047f840","55191a24822f9c23006e9553","55191ab0822f9c23006e9555","55191ad4337285170047f842","55191af6337285170047f844","55191b1c2f1af40d00cff53a","55191b8b2f1af40d00cff53c","551938c23414b40d00e4702c","5519391c822f9c23006e957c","55193985eaa2ed2f0021347d","55196055eaa2ed2f002134bf","5519610671a8cc210031db32","551961462f1af40d00cff5aa","551a85e06491a10d009993c5","551a93007741b6170046c9ed","551a93ccdb581217008593ac","551a946c32be7721001aeef4","551abf0f9f4aa53500653466","551abf556491a10d0099943e","551abf72e3bb6421001eb4ad","551abfa16491a10d00999440","551ac0a06491a10d00999444","551ac0dd9f4aa5350065346a","551ac16e32aa012b00f4e94e","551d00dad65a6d19007a8eb1","551d010944200417009bb2c6","551d012d3c66970d00d20b9a","551d017b8bb4e62300765476","551d01b23c66970d00d20b9c","551d01da44200417009bb2c8","551d0208d65a6d19007a8eb3","551d023f8bb4e62300765478","551d03408bb4e6230076547b","551d08048bb4e62300765481","551d08373c66970d00d20ba3","551d085fe52a0b23000c617d","551d0894d65a6d19007a8ec1","551d08ac44200417009bb2d4","551d08d93c66970d00d20ba5","551d08fe44200417009bb2d7","551d09308bb4e62300765487","551d1e99375fee2d00e640e1","551d1eb5e52a0b23000c619d","551d1ed1375fee2d00e640e3","551d1ee4e52a0b23000c61a0","551d1ef93c66970d00d20bb9","551d1f2ed65a6d19007a8ee1","551d1f423c66970d00d20bbb","551d1f5e375fee2d00e640e5","551d1f773c66970d00d20bbd","551d1f8cd65a6d19007a8ee6","551d1fae3c66970d00d20bbf","551d1fc4375fee2d00e640e7","551d1fe13c66970d00d20bc3","551e6c55b134000d00ad7125","551e6ceda4f7771700ff7e94","551e6d54b134000d00ad7127","551e6e1c610f400d00837d99","551e6e44b134000d00ad7129","551e6e60b134000d00ad712b","551e6e7b610f400d00837d9b","551e6f49b134000d00ad712d","551e6f6c610f400d00837d9e","551e6fbab134000d00ad7130","551e6ffbb134000d00ad7132","551e706e7ca3030d00be0bfa","551e708ea4f7771700ff7e96","551e70c4b134000d00ad7134","551e8f8fc2d1ec1700b425c7","551e8ff88503071700b3b6cb","551e90ca96e4991900a2cffa","551e957d96e4991900a2cffe","551e960d8503071700b3b6e4","551e9bf1a4f7771700ff7eec","551e9c2d610f400d00837dda","551e9c5ca4f7771700ff7eee","551e9c77610f400d00837ddc","551e9d0e610f400d00837dde","551e9dac610f400d00837de0","551e9dd596e4991900a2d015","551e9e0496e4991900a2d017","551e9e2ea4f7771700ff7ef0","551e9e6396e4991900a2d01a","551ea528610f400d00837deb","551ea59e610f400d00837ded","551ea60696e4991900a2d02a","551ea67e8503071700b3b743","551ea6d096e4991900a2d02d","5520f997d3ed4e2300d22a3d","5520fa0b62723a1700fe83ce","5520faeb252e880d0081d9a9","5520fbb362723a1700fe83d1","5520fbf6504fd6230022ae49","55224e2ab4d0d70d007b1795","55225139f9996e0d0097ee5b","55244a651814c71900fd92a9","55244b46f13be93700fee2af","55244cd7d4604839001193a2","55244f58f3551e0d002c72ac","5524e688f96611250011698d","5524e8caf966112500116990","5524ea22f966112500116998","5524eb032dc8d12f001439ee","5524ecb5e9e34e3700e8d908","5524ed5b2dc8d12f001439f9","5524ede3f96611250011699f","5524ee742dc8d12f001439fb","5524ef2ee9e34e3700e8d910","5524efcad919032b0057ac2d","5524f040e9e34e3700e8d918","552522fdb7adc50d0011fd05","55258a31f162440d005df1b5","55258b50f162440d005df1bb","5528127adf96522500059858","552812fbd9e1db2d00cd920d","5528137ed9e1db2d00cd9210","552813d960c60f230003fb03","552817c7555b9e0d00564f6c","55281a80d9e1db2d00cd9226","55281b3c60c60f230003fb1d","55281b95df9652250005986b","55290bbad739240d00a347a8","55290bc6df96522500059936","55290bd7df96522500059938","55290becdf9652250005993a","55290bf6b316811900149f4d","55290c01df9652250005993c","55290c0ddf9652250005993e","55290c19ceedaa0d00bc5c55","55291708b316811900149f57","55291720a15e530d00af3caa","552940d4789aad0d0093f7b9","5529415c789aad0d0093f7bb","552941bed739240d00a347c9","55294238d739240d00a347cb","552943d9d739240d00a347ce","5529446a789aad0d0093f7bd","5529463eb316811900149f69","552a1bc53f29c30d00619c6e","552a1c1fa15e530d00af3dbe","552a1c8967a6a41700a50f9a","552a1cf767a6a41700a50f9c","552a1d7267a6a41700a50f9e","552a1dca3f29c30d00619c70","552acb603f29c30d00619cb3","552e2e8406a32a0d009c2ee8","552e319f5d4baa0d00783623","55798565fdbdb717002fa703","55d78c029510f00d007ec61f"],"project":"55070e814bb83b2500ec9404","version":"550974cb368a561700414757","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-03-18T11:07:06.486Z","from_sync":false,"order":0,"slug":"api","title":"API"},"parentDoc":null,"project":"55070e814bb83b2500ec9404","user":"55070d24d30b3f190011b941","version":{"__v":1,"_id":"550974cb368a561700414757","forked_from":"55070e814bb83b2500ec9407","project":"55070e814bb83b2500ec9404","createdAt":"2015-03-18T12:51:23.709Z","releaseDate":"2015-03-18T12:51:23.709Z","categories":["550974cc368a561700414758","550974cc368a561700414759","550974cc368a56170041475a","550974cc368a56170041475b","550974cc368a56170041475c","550974cc368a56170041475d","550974cc368a56170041475e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.4.0","version":"1.4"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-18T12:27:00.432Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":true,"order":0,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Association Functions\"\n}\n[/block]\n* [belongsTo()](doc:belongsto)\n* [hasMany()](doc:hasmany)\n* [hasOne()](doc:hasone)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Callback Functions\"\n}\n[/block]\n* [afterCreate()](doc:aftercreate)\n* [afterDelete()](doc:afterdelete)\n* [afterFind()](doc:afterfind)\n* [afterInitialization()](doc:afterinitialization)\n* [afterNew()](doc:afternew)\n* [afterSave()](doc:aftersave)\n* [afterUpdate()](doc:afterupdate)\n* [afterValidation()](doc:aftervalidation)\n* [afterValidationOnCreate()](doc:aftervalidationoncreate)\n* [afterValidationOnUpdate()](doc:aftervalidationonupdate)\n* [beforeCreate()](doc:beforecreate)\n* [beforeDelete()](doc:beforedelete)\n* [beforeSave()](doc:beforesave)\n* [beforeUpdate()](doc:beforeupdate)\n* [beforeValidation()](doc:beforevalidation)\n* [beforeValidationOnCreate()](doc:beforevalidationoncreate)\n* [beforeValidationOnUpdate()](doc:beforevalidationonupdate)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Miscellaneous Functions\"\n}\n[/block]\n* [accessibleProperties()](doc:accessibleproperties)\n* [dataSource()](doc:datasource)\n* [nestedProperties()](doc:nestedproperties) \n* [property()](doc:property)\n* [protectedProperties()](doc:protectedproperties)\n* [setPrimaryKey()](doc:setprimarykey)\n* [setPrimaryKeys()](doc:setprimarykeys)\n* [setTableNamePrefix()](doc:settablenameprefix)\n* [table()](doc:table)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Validation Functions\"\n}\n[/block]\n* [automaticValidations()](doc:automaticvalidations)\n* [validate()](doc:validate)\n* [validateOnCreate()](doc:validateoncreate)\n* [validateOnUpdate()](doc:validateonupdate)\n* [validatesConfirmationOf()](doc:validatesconfirmationof)\n* [validatesExclusionOf()](doc:validatesexclusionof)\n* [validatesFormatOf()](doc:validatesformatof)\n* [validatesInclusionOf()](doc:validatesinclusionof)\n* [validatesLengthOf()](doc:validateslengthof)\n* [validatesNumericalityOf()](doc:validatesnumericalityof)\n* [validatesPresenceOf()](doc:validatespresenceof)\n* [validatesUniquenessOf()](doc:validatesuniquenessof)","excerpt":"These methods are called from the `init()` methods of your model files.","slug":"model-initialization-functions","type":"basic","title":"Model Initialization Functions"}

Model Initialization Functions

These methods are called from the `init()` methods of your model files.

[block:api-header] { "type": "basic", "title": "Association Functions" } [/block] * [belongsTo()](doc:belongsto) * [hasMany()](doc:hasmany) * [hasOne()](doc:hasone) [block:api-header] { "type": "basic", "title": "Callback Functions" } [/block] * [afterCreate()](doc:aftercreate) * [afterDelete()](doc:afterdelete) * [afterFind()](doc:afterfind) * [afterInitialization()](doc:afterinitialization) * [afterNew()](doc:afternew) * [afterSave()](doc:aftersave) * [afterUpdate()](doc:afterupdate) * [afterValidation()](doc:aftervalidation) * [afterValidationOnCreate()](doc:aftervalidationoncreate) * [afterValidationOnUpdate()](doc:aftervalidationonupdate) * [beforeCreate()](doc:beforecreate) * [beforeDelete()](doc:beforedelete) * [beforeSave()](doc:beforesave) * [beforeUpdate()](doc:beforeupdate) * [beforeValidation()](doc:beforevalidation) * [beforeValidationOnCreate()](doc:beforevalidationoncreate) * [beforeValidationOnUpdate()](doc:beforevalidationonupdate) [block:api-header] { "type": "basic", "title": "Miscellaneous Functions" } [/block] * [accessibleProperties()](doc:accessibleproperties) * [dataSource()](doc:datasource) * [nestedProperties()](doc:nestedproperties) * [property()](doc:property) * [protectedProperties()](doc:protectedproperties) * [setPrimaryKey()](doc:setprimarykey) * [setPrimaryKeys()](doc:setprimarykeys) * [setTableNamePrefix()](doc:settablenameprefix) * [table()](doc:table) [block:api-header] { "type": "basic", "title": "Validation Functions" } [/block] * [automaticValidations()](doc:automaticvalidations) * [validate()](doc:validate) * [validateOnCreate()](doc:validateoncreate) * [validateOnUpdate()](doc:validateonupdate) * [validatesConfirmationOf()](doc:validatesconfirmationof) * [validatesExclusionOf()](doc:validatesexclusionof) * [validatesFormatOf()](doc:validatesformatof) * [validatesInclusionOf()](doc:validatesinclusionof) * [validatesLengthOf()](doc:validateslengthof) * [validatesNumericalityOf()](doc:validatesnumericalityof) * [validatesPresenceOf()](doc:validatespresenceof) * [validatesUniquenessOf()](doc:validatesuniquenessof)