Source for file schemaless.php
Documentation is available at schemaless.php
* Adds functionality specific to MongoDB/schemaless dbs
* Allow /not/ specifying the model's schema, and derive it (for cake-compatibility) from the data
* being saved. Note that used carelessly this is a pretty dangerous thing to allow - means a user
* can modify input forms adding whatever fields they like (unless you'er using the security
* component) and fill your db with their junk.
* Copyright (c) 2010, Andy Dawson
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
* @copyright Copyright (c) 2010, Andy Dawson
* @subpackage mongodb.models.behaviors
* @since v 1.0 (24-May-2010)
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* SchemalessBehavior class
* @subpackage mongodb.models.behaviors
* @var string 'Schemaless'
public $name =
'Schemaless';
* defaultSettings property
* Don't currently have any settings at all - disabled
* @param array $config array()
public function setup(&$Model, $config =
array()) {
//$this->settings[$Model->alias] = array_merge($this->_defaultSettings, $config);
* Set the schema to allow saving whatever has been passed
$Model->cacheSources =
false;
Documentation generated on Tue, 26 Jul 2011 01:09:01 +0900 by phpDocumentor 1.4.3