lib/db/cortex.php
public function castAll($rel_depths=1) {
		$out = array();
		foreach ($this->getArrayCopy() as $model)
			$out[] = $model->cast(null,$rel_depths);
		return $out;
	}
public function castAll($rel_depths=1) {
		$out = array();
		foreach ($this->getArrayCopy() as $model)
			$out[] = $model->cast(null,$rel_depths);
		return $out;
	}
public function castAll ( $ rel_depths = 1 ) { $ out = array ( ) ; foreach ( $ this -> getArrayCopy ( ) as $ model ) $ out [ ] = $ model -> cast ( null , $ rel_depths ) ; return $ out ; }
cast all contained mappers to a nested array
@param int|array $rel_depths depths to resolve relations
@return array
cast all contained mappers to a nested array