lib/db/cortex.php
function setModels($models, $init=true) {
		array_map(array($this,'add'),$models);
		if ($init)
			$this->changed = false;
	}
function setModels($models, $init=true) {
		array_map(array($this,'add'),$models);
		if ($init)
			$this->changed = false;
	}
function setModels ( $ models , $ init = true ) { array_map ( array ( $ this , 'add' ) , $ models ) ; if ( $ init ) $ this -> changed = false ; }
set a collection of models
@param $models
set a collection of models