public function binding($name = null) {
		if (!$this->_binding) {
			return $this->_config['binding'](null, $name);
		}

		$binding = $this->_binding;
		$model = null;
		$key = $name;

		if (is_array($binding)) {
			switch (true) {
				case strpos($name, '.'):
					list($model, $key) = explode('.', $name, 2);
					$binding = isset($binding[$model]) ? $binding[$model] : reset($binding);
				break;
				case isset($binding[$name]):
					$binding = $binding[$name];
					$key = null;
				break;
				default:
					$binding = reset($binding);
				break;
			}
		}
		return $key ? $this->_config['binding']($binding, $key) : $binding;
	}
public function binding($name = null) {
		if (!$this->_binding) {
			return $this->_config['binding'](null, $name);
		}

		$binding = $this->_binding;
		$model = null;
		$key = $name;

		if (is_array($binding)) {
			switch (true) {
				case strpos($name, '.'):
					list($model, $key) = explode('.', $name, 2);
					$binding = isset($binding[$model]) ? $binding[$model] : reset($binding);
				break;
				case isset($binding[$name]):
					$binding = $binding[$name];
					$key = null;
				break;
				default:
					$binding = reset($binding);
				break;
			}
		}
		return $key ? $this->_config['binding']($binding, $key) : $binding;
	}
public function binding ( $ name = null ) { if ( ! $ this -> _binding ) { return $ this -> _config [ 'binding' ] ( null , $ name ) ; } $ binding = $ this -> _binding ; $ model = null ; $ key = $ name ; if ( is_array ( $ binding ) ) { switch ( true ) { case strpos ( $ name , '.' ) : list ( $ model , $ key ) = explode ( '.' , $ name , 2 ) ; $ binding = isset ( $ binding [ $ model ] ) ? $ binding [ $ model ] : reset ( $ binding ) ; break ; case isset ( $ binding [ $ name ] ) : $ binding = $ binding [ $ name ] ; $ key = null ; break ; default : $ binding = reset ( $ binding ) ; break ; } } return $ key ? $ this -> _config [ 'binding' ] ( $ binding , $ key ) : $ binding ; }
Returns the entity that the `Form` helper is currently bound to.

@see lithium\template\helper\Form::$_binding
@param string $name If specified, match this field name against the list of bindings
@param string $key If $name specified, where to store relevant $_binding key
@return object Returns an object, usually an instance of `lithium\data\Entity`.
Returns the entity that the Form helper is currently bound to .