public function getColumnClassName($options)
	{
		$model = $this->config->getDataModel();
		$namespace = __NAMESPACE__ . '\\';

		//if the relationship is set
		if ($method = $this->validator->arrayGet($options, 'relationship'))
		{
			if (method_exists($model, $method))
			{
				$relationship = $model->{$method}();

				if (is_a($relationship, self::BELONGS_TO_MANY))
				{
					return $namespace . 'Relationships\BelongsToMany';
				}
				else if (is_a($relationship, self::HAS_ONE) || is_a($relationship, self::HAS_MANY))
				{
					return $namespace . 'Relationships\HasOneOrMany';
				}
			}

			//assume it's a nested relationship
			return $namespace . 'Relationships\BelongsTo';
		}

		return $namespace . 'Column';
	}
public function getColumnClassName($options)
	{
		$model = $this->config->getDataModel();
		$namespace = __NAMESPACE__ . '\\';

		//if the relationship is set
		if ($method = $this->validator->arrayGet($options, 'relationship'))
		{
			if (method_exists($model, $method))
			{
				$relationship = $model->{$method}();

				if (is_a($relationship, self::BELONGS_TO_MANY))
				{
					return $namespace . 'Relationships\BelongsToMany';
				}
				else if (is_a($relationship, self::HAS_ONE) || is_a($relationship, self::HAS_MANY))
				{
					return $namespace . 'Relationships\HasOneOrMany';
				}
			}

			//assume it's a nested relationship
			return $namespace . 'Relationships\BelongsTo';
		}

		return $namespace . 'Column';
	}
public function getColumnClassName ( $ options ) { $ model = $ this -> config -> getDataModel ( ) ; $ namespace = __NAMESPACE__ . '\\' ; //if the relationship is set if ( $ method = $ this -> validator -> arrayGet ( $ options , 'relationship' ) ) { if ( method_exists ( $ model , $ method ) ) { $ relationship = $ model -> { $ method } ( ) ; if ( is_a ( $ relationship , self :: BELONGS_TO_MANY ) ) { return $ namespace . 'Relationships\BelongsToMany' ; } else if ( is_a ( $ relationship , self :: HAS_ONE ) || is_a ( $ relationship , self :: HAS_MANY ) ) { return $ namespace . 'Relationships\HasOneOrMany' ; } } //assume it's a nested relationship return $ namespace . 'Relationships\BelongsTo' ; } return $ namespace . 'Column' ; }
Gets the column class name depending on whether or not it's a relationship and what type of relationship it is

@param array		$options

@return string
Gets the column class name depending on whether or not it s a relationship and what type of relationship it is