public function setName($name)
    {
        if (false !== stripos($name, '.')) {
            $relations = explode('.', $name);
            $name = array_pop($relations);
            $this->relation = implode('.', $relations);
        }

        $this->name = $name;

        return $this;
    }