protected function addRelation($name)
    {
        if (strstr($name, '.')) {
            $parts = explode('.', $name);
            $this->name = array_pop($parts);
            $this->relation = $parts;
        } else {
            $this->name = $name;
        }
    }