public function unserialize($str, $entity, $name) {
		if($this->get('many')) {
			$r = new ManyCollection($entity, $name);
			$arr = unserialize($str);
			if(!is_array($arr))
				return $r;
			foreach($arr as $v)
				$r[] = $this->doUnserialize($v, $entity);
			return $r;
		}
		else
			return $this->doUnserialize($str, $entity);
	}
public function unserialize($str, $entity, $name) {
		if($this->get('many')) {
			$r = new ManyCollection($entity, $name);
			$arr = unserialize($str);
			if(!is_array($arr))
				return $r;
			foreach($arr as $v)
				$r[] = $this->doUnserialize($v, $entity);
			return $r;
		}
		else
			return $this->doUnserialize($str, $entity);
	}
public function unserialize ( $ str , $ entity , $ name ) { if ( $ this -> get ( 'many' ) ) { $ r = new ManyCollection ( $ entity , $ name ) ; $ arr = unserialize ( $ str ) ; if ( ! is_array ( $ arr ) ) return $ r ; foreach ( $ arr as $ v ) $ r [ ] = $ this -> doUnserialize ( $ v , $ entity ) ; return $ r ; } else return $ this -> doUnserialize ( $ str , $ entity ) ; }
Unserialize a string.
@param  string $str
@param  Entity $entity
@param  string $name
@return mixed
Unserialize a string .