public function getDefault($entity, $name) {
		if($this->get('many'))
			return new ManyCollection($entity, $name);
		elseif(isset($this->params['default'])) {
			if(is_callable($this->params['default']))
				return $this->params['default']();
			else
				return $this->params['default'];
		}
		else
			return $this->_getDefault($entity);
	}
public function getDefault($entity, $name) {
		if($this->get('many'))
			return new ManyCollection($entity, $name);
		elseif(isset($this->params['default'])) {
			if(is_callable($this->params['default']))
				return $this->params['default']();
			else
				return $this->params['default'];
		}
		else
			return $this->_getDefault($entity);
	}
public function getDefault ( $ entity , $ name ) { if ( $ this -> get ( 'many' ) ) return new ManyCollection ( $ entity , $ name ) ; elseif ( isset ( $ this -> params [ 'default' ] ) ) { if ( is_callable ( $ this -> params [ 'default' ] ) ) return $ this -> params [ 'default' ] ( ) ; else return $ this -> params [ 'default' ] ; } else return $ this -> _getDefault ( $ entity ) ; }
Return the default value.
@param  Entity $entity
@param  strng  $name
@return mixed
Return the default value .